Init the logger to read settings from environment variables 60/200860/4
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 4 Mar 2019 14:03:15 +0000 (15:03 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 7 Mar 2019 14:22:41 +0000 (15:22 +0100)
Change-Id: I985325bc3d2ee2d589b8c467f6d8d8e92ceb31b5

src/internal/serializer.cpp

index c4beffb..af69580 100644 (file)
@@ -106,6 +106,7 @@ uint8_t* Serializer::serialize(const BusType bus_type, size_t &size) {
 
 uint8_t* Serializer::serialize(const std::string config_path, size_t &size) {
        // SYSTEM_BUS here because something had to be choosen
+       __internal_init_once();
        if (__internal_init(BusType::SYSTEM_BUS, config_path.c_str()) != 0)
                cout << "internal_init error" << endl;