# HG changeset patch # User Sebastien Decugis # Date 1368689593 -28800 # Node ID 799323958f02cd03fef8632059924698b73b2513 # Parent 7b57dc5a681fd642a218971da9af9af7356152d9 Use FATAL level for extensions dependency problems diff -r 7b57dc5a681f -r 799323958f02 libfdcore/extensions.c --- a/libfdcore/extensions.c Thu May 16 15:26:15 2013 +0800 +++ b/libfdcore/extensions.c Thu May 16 15:33:13 2013 +0800 @@ -128,7 +128,7 @@ if (li == &ext->chain) { /* the dependency was not found */ - TRACE_ERROR("Error: extension [%s] depends on [%s] which was not loaded first. Please fix your configuration file.", + LOG_F("Error: extension [%s] depends on [%s] which was not loaded first. Please fix your configuration file.", ext->ext_name, ext->depends[i]); return ESRCH; } @@ -165,14 +165,12 @@ if (ext->handler == NULL) { /* An error occured */ LOG_F("Loading of extension %s failed: %s", ext->filename, dlerror()); - #ifdef DEBUG ext->handler = dlopen(ext->filename, RTLD_LAZY | RTLD_GLOBAL); if (ext->handler) { if (!check_dependencies(ext)) { - TRACE_ERROR("In addition, not all declared dependencies are satisfied (Internal Error!)"); + LOG_F("In addition, not all declared dependencies are satisfied (Internal Error!)"); } } - #endif /* DEBUG */ return EINVAL; }