]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
module_dir_load(): If ignore_dlopen_errors and debug is set, still log a debug messag...
authorTimo Sirainen <tss@iki.fi>
Fri, 6 Aug 2010 16:21:27 +0000 (17:21 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 6 Aug 2010 16:21:27 +0000 (17:21 +0100)
src/lib/module-dir.c

index e4c283631c4e8391ab8b726949237a47278610d3..7121f4d53f01bd157ea147cc9f3d18645e0d1e51 100644 (file)
@@ -170,8 +170,14 @@ module_load(const char *path, const char *name,
 
        if (set->ignore_dlopen_errors) {
                handle = quiet_dlopen(path, RTLD_GLOBAL | RTLD_NOW);
-               if (handle == NULL)
+               if (handle == NULL) {
+                       if (set->debug) {
+                               i_debug("Skipping module %s, "
+                                       "because dlopen() failed: %s",
+                                       name, dlerror());
+                       }
                        return NULL;
+               }
        } else {
                handle = dlopen(path, RTLD_GLOBAL | RTLD_NOW);
                if (handle == NULL) {