Addition of log message for zero users beign loaded.

This commit is contained in:
Mark Riddoch
2015-02-06 16:10:29 +00:00
parent 10e5eaea87
commit ba0d4ae29e

View File

@ -266,6 +266,14 @@ GWPROTOCOL *funcs;
strncat(path, "/dbusers", 4096);
dbusers_save(service->users, path);
}
if (loaded == 0)
{
LOGIF(LE, (skygw_log_write_flush(
LOGFILE_ERROR,
"Service %s: failed to load any user "
"information. Authentication will "
"probably fail as a result.")));
}
/* At service start last update is set to USERS_REFRESH_TIME seconds earlier.
* This way MaxScale could try reloading users' just after startup