Added message printing telling what file provided the module which was loaded.

This commit is contained in:
VilhoRaatikka
2014-05-17 23:10:03 +02:00
parent bb364f531b
commit 5c39682e40
2 changed files with 4 additions and 5 deletions

View File

@ -106,6 +106,7 @@ MODULES *mod;
return NULL;
}
}
if ((dlhandle = dlopen(fname, RTLD_NOW|RTLD_LOCAL)) == NULL)
{
LOGIF(LE, (skygw_log_write_flush(
@ -156,9 +157,10 @@ MODULES *mod;
LOGIF(LM, (skygw_log_write_flush(
LOGFILE_MESSAGE,
"Loaded module %s: %s.",
"Loaded module %s: %s from %s",
module,
version)));
version,
fname)));
register_module(module, type, dlhandle, version, modobj);
}
else