mirror of https://git.kore.io/kore.git
Be less noisy about module reloading.
No longer show "not reloading foo" if timestamps didn't change. Be more clear about a module forcing us to not reload it.
This commit is contained in:
parent
d09eb5e107
commit
00ce970efe
|
@ -147,17 +147,15 @@ kore_module_reload(int cbs)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (module->mtime == st.st_mtime) {
|
||||
kore_log(LOG_NOTICE, "not reloading %s", module->path);
|
||||
if (module->mtime == st.st_mtime)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (module->ocb != NULL && cbs == 1) {
|
||||
ret = kore_runtime_onload(module->ocb,
|
||||
KORE_MODULE_UNLOAD);
|
||||
if (ret == KORE_RESULT_ERROR) {
|
||||
kore_log(LOG_NOTICE,
|
||||
"not reloading %s", module->path);
|
||||
"%s forced no reloaded", module->path);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue