server: Decrease log level for module compilation related messages
This commit is contained in:
parent
272a2dc7bf
commit
8e11727c1c
@ -86,17 +86,17 @@ struct CCompiler: public Compiler
|
|||||||
const std::string &in_path, const std::string &out_path,
|
const std::string &in_path, const std::string &out_path,
|
||||||
const ss_ &extra_cxxflags, const ss_ &extra_ldflags)
|
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));
|
cs(out_path));
|
||||||
|
|
||||||
std::string out_dir = c55fs::stripFilename(out_path);
|
std::string out_dir = c55fs::stripFilename(out_path);
|
||||||
c55fs::CreateAllDirs(out_dir);
|
c55fs::CreateAllDirs(out_dir);
|
||||||
|
|
||||||
if(!compile(in_path, out_path, extra_cxxflags, extra_ldflags)){
|
if(!compile(in_path, out_path, extra_cxxflags, extra_ldflags)){
|
||||||
log_i(MODULE, "Failed!");
|
log_d(MODULE, "Failed!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
log_i(MODULE, "Success!");
|
log_d(MODULE, "Success!");
|
||||||
|
|
||||||
void *new_module = library_load(out_path.c_str());
|
void *new_module = library_load(out_path.c_str());
|
||||||
if(new_module == NULL){
|
if(new_module == NULL){
|
||||||
|
@ -167,7 +167,7 @@ struct CState: public State, public interface::Server
|
|||||||
sv_<ss_> include_dirs = m_compiler->include_directories;
|
sv_<ss_> include_dirs = m_compiler->include_directories;
|
||||||
include_dirs.push_back(m_modules_path);
|
include_dirs.push_back(m_modules_path);
|
||||||
sv_<ss_> includes = list_includes(init_cpp_path, include_dirs);
|
sv_<ss_> 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());
|
files_to_watch.insert(files_to_watch.end(), includes.begin(), includes.end());
|
||||||
|
|
||||||
if(m_module_file_watches.count(info.name) == 0){
|
if(m_module_file_watches.count(info.name) == 0){
|
||||||
@ -437,7 +437,7 @@ struct CState: public State, public interface::Server
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto *evreg = interface::getGlobalEventRegistry();
|
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);
|
cs(module_name), cs(evreg->name(type)), type);
|
||||||
sublist.push_back(mc0);
|
sublist.push_back(mc0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user