Syslog ident must be provided explicitly.

The syslog ident must be provided explicitly when calling
skygw_logmanager_init (and not provided via the argv array).
It can be NULL, in which case it automatically will be the program
name.

The openlog() call is now always made, irrespective of what the
value of the global syslog flag is. That way it will be possible
to turn syslog logging on or off after the fact.
This commit is contained in:
Johan Wikman
2015-11-10 10:17:42 +02:00
parent 55dbaa49c0
commit 24bed47794
11 changed files with 56 additions and 77 deletions

View File

@ -136,7 +136,7 @@ int main(int argc, char **argv) {
arg_vector[0] = "logmanager";
arg_vector[1] = NULL;
skygw_logmanager_init(NULL, LOG_TARGET_DEFAULT, arg_count, arg_vector);
skygw_logmanager_init(NULL, NULL, LOG_TARGET_DEFAULT, arg_count, arg_vector);
skygw_log_set_augmentation(0);