From 8e11727c1c1c69af4eb3f4d75e061e815a708a19 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 1 Oct 2014 09:30:03 +0300 Subject: [PATCH] server: Decrease log level for module compilation related messages --- src/server/rccpp.cpp | 6 +++--- src/server/state.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/rccpp.cpp b/src/server/rccpp.cpp index c3359e5..85ee83b 100644 --- a/src/server/rccpp.cpp +++ b/src/server/rccpp.cpp @@ -86,17 +86,17 @@ struct CCompiler: public Compiler const std::string &in_path, const std::string &out_path, const ss_ &extra_cxxflags, const ss_ &extra_ldflags) { - log_ni(MODULE, "Building %s: %s -> %s... ", cs(module_name), cs(in_path), + log_nd(MODULE, "Building %s: %s -> %s... ", cs(module_name), cs(in_path), cs(out_path)); std::string out_dir = c55fs::stripFilename(out_path); c55fs::CreateAllDirs(out_dir); if(!compile(in_path, out_path, extra_cxxflags, extra_ldflags)){ - log_i(MODULE, "Failed!"); + log_d(MODULE, "Failed!"); return false; } - log_i(MODULE, "Success!"); + log_d(MODULE, "Success!"); void *new_module = library_load(out_path.c_str()); if(new_module == NULL){ diff --git a/src/server/state.cpp b/src/server/state.cpp index bfa962a..5edbbbe 100644 --- a/src/server/state.cpp +++ b/src/server/state.cpp @@ -167,7 +167,7 @@ struct CState: public State, public interface::Server sv_ include_dirs = m_compiler->include_directories; include_dirs.push_back(m_modules_path); sv_ includes = list_includes(init_cpp_path, include_dirs); - log_v(MODULE, "Includes: %s", cs(dump(includes))); + log_d(MODULE, "Includes: %s", cs(dump(includes))); files_to_watch.insert(files_to_watch.end(), includes.begin(), includes.end()); if(m_module_file_watches.count(info.name) == 0){ @@ -437,7 +437,7 @@ struct CState: public State, public interface::Server return; } auto *evreg = interface::getGlobalEventRegistry(); - log_v(MODULE, "sub_event(): %s subscribed to %s (%zu)", + log_d(MODULE, "sub_event(): %s subscribed to %s (%zu)", cs(module_name), cs(evreg->name(type)), type); sublist.push_back(mc0); }