summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Lis <m.lis@samsung.com>2014-07-15 18:48:14 +0200
committerMarcin Lis <m.lis@samsung.com>2014-07-18 08:14:39 -0700
commitb0cb6b55e919718401a3fea9a777c5ba737ccb7d (patch)
tree1763d0f1bcc84bb7431c4a5247ae6889b99a0e39
parentf3bed74bb83b54f8382a3584e8627871ffc14151 (diff)
downloadsecurity-manager-b0cb6b55e919718401a3fea9a777c5ba737ccb7d.tar.gz
security-manager-b0cb6b55e919718401a3fea9a777c5ba737ccb7d.tar.bz2
security-manager-b0cb6b55e919718401a3fea9a777c5ba737ccb7d.zip
Logging: Remove the log tag from logs messages
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>
-rw-r--r--src/dpl/log/src/sd_journal_provider.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dpl/log/src/sd_journal_provider.cpp b/src/dpl/log/src/sd_journal_provider.cpp
index 6c22929d..bd570ca3 100644
--- a/src/dpl/log/src/sd_journal_provider.cpp
+++ b/src/dpl/log/src/sd_journal_provider.cpp
@@ -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());
}