changeset 1144:799323958f02

Use FATAL level for extensions dependency problems
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 16 May 2013 15:33:13 +0800
parents 7b57dc5a681f
children ea3a653a809e dee5ca683bee
files libfdcore/extensions.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}
 		
"Welcome to our mercurial repository"