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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user