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:
Joris Vink 2017-02-22 12:48:06 -08:00
parent d09eb5e107
commit 00ce970efe
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}
}