X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/01c8efc4c28d6f4fb844a4d70e53000104a049e9..7e2a4802f98a1e22841be0ed47f3db773a5d6070:/projects/stargazer/settings_impl.cpp?ds=inline diff --git a/projects/stargazer/settings_impl.cpp b/projects/stargazer/settings_impl.cpp index b547c4a7..d5fb2dad 100644 --- a/projects/stargazer/settings_impl.cpp +++ b/projects/stargazer/settings_impl.cpp @@ -32,9 +32,9 @@ $Author: faust $ #include #include +#include "stg/logger.h" +#include "stg/dotconfpp.h" #include "settings_impl.h" -#include "stg_logger.h" -#include "dotconfpp.h" using namespace std; @@ -42,6 +42,7 @@ using namespace std; SETTINGS_IMPL::SETTINGS_IMPL() : strError(), modulesPath("/usr/lib/stg"), + dirName(DIR_NUM), confDir("/etc/stargazer"), scriptsDir("/etc/stargazer"), rules("/etc/stargazer/rules"), @@ -234,9 +235,9 @@ return 0; //----------------------------------------------------------------------------- void SETTINGS_IMPL::ErrorCallback(void * data, const char * buf) { - printfd(__FILE__, buf); + printfd(__FILE__, "SETTINGS_IMPL::ErrorCallback() - %s\n", buf); SETTINGS_IMPL * settings = static_cast(data); - settings->logger(buf); + settings->logger("%s", buf); } //----------------------------------------------------------------------------- int SETTINGS_IMPL::ReadSettings()