[Issue#] N/A
[Feature/Bug] N/A
[Problem] Logs from key-manager-common not visible
[Cause] 2 instances of LogSystemSingleton were created in key-manager binary
(log.cpp and key-manager-main.cpp)
[Solution] Excessive LogSystemSingleton definition removed.
[Verification] Compile & install ckm & tests. Run dlogutil and see if all logs
are visible (CKM-CLIENT and CKM including logs from key-manager-common library)
Change-Id: Idf508facc33318030db90633afa581d5cf012747
#include <dpl/log/log.h>
#include <dpl/serialization.h>
#include <dpl/singleton.h>
-#include <dpl/singleton_safe_impl.h>
#include <message-buffer.h>
#include <protocols.h>
#include <client-common.h>
-IMPLEMENT_SAFE_SINGLETON(CKM::Log::LogSystem);
-
namespace {
const int POLL_TIMEOUT = 600000;
#include <cassert>
#include <dpl/log/log.h>
-#include <dpl/singleton_impl.h>
+#include <dpl/singleton_safe_impl.h>
#include <dpl/log/old_style_log_provider.h>
#include <dpl/log/dlog_log_provider.h>
#include <dpl/log/journal_log_provider.h>
-IMPLEMENT_SINGLETON(CKM::Log::LogSystem)
+IMPLEMENT_SAFE_SINGLETON(CKM::Log::LogSystem);
namespace CKM {
namespace Log {
#include <dpl/log/log.h>
#include <dpl/singleton.h>
-#include <dpl/singleton_safe_impl.h>
#include <socket-manager.h>
#include <CryptoService.h>
#include <file-system.h>
-IMPLEMENT_SAFE_SINGLETON(CKM::Log::LogSystem);
-
#define REGISTER_SOCKET_SERVICE(manager, service) \
registerSocketService<service>(manager, #service)