Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3531:c506ec006de5 HEAD
If DEBUG environment is set, module_load_dir() now prints some debugging
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 14 Aug 2005 22:40:29 +0300 |
parents | e9695ec7925b |
children | 4f7427a5be61 |
files | src/lib/module-dir.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/module-dir.c Sun Aug 14 22:02:54 2005 +0300 +++ b/src/lib/module-dir.c Sun Aug 14 22:40:29 2005 +0300 @@ -5,6 +5,7 @@ #ifdef HAVE_MODULES +#include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <dlfcn.h> @@ -86,6 +87,9 @@ return NULL; } + if (getenv("DEBUG") != NULL) + i_info("Module loaded: %s", path); + if (init != NULL) init(); return module; @@ -98,6 +102,9 @@ const char *name, *path, *p; struct module *modules, *module; + if (getenv("DEBUG") != NULL) + i_info("Loading modules from directory: %s", dir); + dirp = opendir(dir); if (dirp == NULL) { if (errno != ENOENT)