Mercurial > dovecot > core-2.2
changeset 11955:99996236fa51
module_dir_load(): If ignore_dlopen_errors and debug is set, still log a debug message about failure.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 06 Aug 2010 17:21:27 +0100 |
parents | e54df5af98ac |
children | 41e6ffa319b7 |
files | src/lib/module-dir.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/module-dir.c Fri Aug 06 17:05:16 2010 +0100 +++ b/src/lib/module-dir.c Fri Aug 06 17:21:27 2010 +0100 @@ -170,8 +170,14 @@ 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) {