From 4cc3dc03fc8419abde6e77dceda773a19a246c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sat, 10 Dec 2016 03:58:27 +0100 Subject: =?UTF-8?q?The=20config=20module=20doesn=E2=80=99t=20use=20the=20l?= =?UTF-8?q?ogger=20at=20all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- louloulibs/config/config.cpp | 7 +++---- louloulibs/config/config.hpp | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'louloulibs/config') diff --git a/louloulibs/config/config.cpp b/louloulibs/config/config.cpp index 417981d..24a1c87 100644 --- a/louloulibs/config/config.cpp +++ b/louloulibs/config/config.cpp @@ -1,8 +1,7 @@ #include -#include +#include #include -#include #include @@ -66,7 +65,7 @@ bool Config::read_conf(const std::string& name) std::ifstream file(Config::filename.data()); if (!file.is_open()) { - log_error("Error while opening file ", filename, " for reading: ", strerror(errno)); + std::cerr << "Error while opening file " << filename << " for reading: " << strerror(errno) << std::endl; return false; } @@ -96,7 +95,7 @@ void Config::save_to_file() std::ofstream file(Config::filename.data()); if (file.fail()) { - log_error("Could not save config file."); + std::cerr << "Could not save config file." << std::endl; return ; } for (const auto& it: Config::values) diff --git a/louloulibs/config/config.hpp b/louloulibs/config/config.hpp index 6728df8..4e01281 100644 --- a/louloulibs/config/config.hpp +++ b/louloulibs/config/config.hpp @@ -15,7 +15,6 @@ #pragma once - #include #include #include -- cgit v1.2.3