Logging: Remove the log tag from logs messages 17/24517/4
authorMarcin Lis <m.lis@samsung.com>
Tue, 15 Jul 2014 16:48:14 +0000 (18:48 +0200)
committerMarcin Lis <m.lis@samsung.com>
Fri, 18 Jul 2014 15:14:39 +0000 (08:14 -0700)
The log tag "SECURITY_MANAGER" and its client's version that were used in dlog
messages are not needed in systemd journal logs, this is redundant information.
It is easy to maintain the source of logs using journalctl.

Change-Id: Ia987cb3e401f46fe15eea210a0c2a9406caa7882
Signed-off-by: Marcin Lis <m.lis@samsung.com>
src/dpl/log/src/sd_journal_provider.cpp

index 6c22929..bd570ca 100644 (file)
@@ -60,7 +60,7 @@ void SdJournalProvider::Debug(const char *message,
                             const char *function)
 {
     // sd-journal imports LOG priorities from the syslog, see syslog(3) for details
-    sd_journal_print(LOG_DEBUG, "%s: %s", m_tag.c_str(),
+    sd_journal_print(LOG_DEBUG, "%s",
                      (FormatMessage(message, filename, line, function)).c_str());
 }
 
@@ -69,7 +69,7 @@ void SdJournalProvider::Info(const char *message,
                            int line,
                            const char *function)
 {
-    sd_journal_print(LOG_INFO, "%s: %s", m_tag.c_str(),
+    sd_journal_print(LOG_INFO, "%s",
                      (FormatMessage(message, filename, line, function)).c_str());
 }
 
@@ -78,7 +78,7 @@ void SdJournalProvider::Warning(const char *message,
                               int line,
                               const char *function)
 {
-    sd_journal_print(LOG_WARNING, "%s: %s", m_tag.c_str(),
+    sd_journal_print(LOG_WARNING, "%s",
                      (FormatMessage(message, filename, line, function)).c_str());
 }
 
@@ -87,7 +87,7 @@ void SdJournalProvider::Error(const char *message,
                             int line,
                             const char *function)
 {
-    sd_journal_print(LOG_ERR, "%s: %s", m_tag.c_str(),
+    sd_journal_print(LOG_ERR, "%s",
                      (FormatMessage(message, filename, line, function)).c_str());
 }