Enable dlog on on-demand startup
authorSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 24 Feb 2020 04:46:19 +0000 (13:46 +0900)
committer권상완/Security 2Lab(SR)/Engineer/삼성전자 <sangwan.kwon@samsung.com>
Tue, 25 Feb 2020 05:08:55 +0000 (14:08 +0900)
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
src/vist/rmi/impl/systemd-socket.hpp

index 38dd2d2..7902834 100644 (file)
@@ -16,8 +16,9 @@
 
 #pragma once
 
-#include <vist/logger.hpp>
 #include <vist/exception.hpp>
+#include <vist/logger.hpp>
+#include <vist/logger/dlog.hpp>
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -31,6 +32,8 @@ class SystemdSocket {
 public:
        static int Create(const std::string& path)
        {
+               LogStream::Init(std::make_shared<Dlog>());
+
                static int fds = -1;
 
                if (fds == -1)