From 3f0a255af69c340174a2d86d52c561a8a4a0f25b Mon Sep 17 00:00:00 2001
From: Felix Riehn <felix@matilda>
Date: Fri, 22 Jan 2021 10:33:27 +0000
Subject: [PATCH] change logger name to namespace_ClassName

---
 corsika/detail/modules/OnShellCheck.inl | 2 +-
 corsika/modules/OnShellCheck.hpp        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/corsika/detail/modules/OnShellCheck.inl b/corsika/detail/modules/OnShellCheck.inl
index 438c5ad61..aa6b0453f 100644
--- a/corsika/detail/modules/OnShellCheck.inl
+++ b/corsika/detail/modules/OnShellCheck.inl
@@ -78,7 +78,7 @@ namespace corsika {
         // reset energy
         p.setEnergy(e_shifted);
       } else
-        CORSIKA_LOGGER_DEBUG(logger_, "OnShellCheck: particle mass for {} OK", pid);
+        CORSIKA_LOGGER_DEBUG(logger_, "particle mass for {} OK", pid);
     }
   }
 
diff --git a/corsika/modules/OnShellCheck.hpp b/corsika/modules/OnShellCheck.hpp
index 8be54336f..e9589b935 100644
--- a/corsika/modules/OnShellCheck.hpp
+++ b/corsika/modules/OnShellCheck.hpp
@@ -31,7 +31,7 @@ namespace corsika {
     double average_shift_ = 0;
     double max_shift_ = 0;
     double count_ = 0;
-    std::shared_ptr<spdlog::logger> logger_ = get_logger("on_shell_check");
+    std::shared_ptr<spdlog::logger> logger_ = get_logger("on_shell_check_OnShellCheck");
     double mass_tolerance_;
     double energy_tolerance_;
     bool throw_error_;
-- 
GitLab