catch exceptions as const

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic8e6ade739bd5ea6e79cac6b9bb2b182748e10c8
diff --git a/logging_test.cpp b/logging_test.cpp
index d7d82ce..eb0dd21 100644
--- a/logging_test.cpp
+++ b/logging_test.cpp
@@ -105,7 +105,7 @@
             example::xyz::openbmc_project::Example::Elog::TestErrorTwo::
                 DEV_NAME("test case 3"));
     }
-    catch (example::xyz::openbmc_project::Example::Elog::TestErrorOne& e)
+    catch (const example::xyz::openbmc_project::Example::Elog::TestErrorOne& e)
     {
         std::cout << "elog exception caught: " << e.what() << std::endl;
     }
@@ -152,7 +152,7 @@
             TestErrorTwo::DEV_ADDR(0xDEADDEAD), TestErrorTwo::DEV_ID(100),
             TestErrorTwo::DEV_NAME("test case 4"));
     }
-    catch (sdbusplus::exception_t& e)
+    catch (const sdbusplus::exception_t& e)
     {
         std::cout << "elog exception caught: " << e.what() << std::endl;
     }
@@ -211,7 +211,9 @@
                 example::xyz::openbmc_project::Example::Elog::AutoTestSimple::
                     STRING("FOO"));
         }
-        catch (example::xyz::openbmc_project::Example::Elog::AutoTestSimple& e)
+        catch (
+            const example::xyz::openbmc_project::Example::Elog::AutoTestSimple&
+                e)
         {
             std::cout << "elog exception caught: " << e.what() << std::endl;
             commit(e.name());