mod_logging: Fix inverted if statement in syslog config check

This commit is contained in:
Yorhel 2016-07-10 08:26:20 +02:00 committed by Jan Vidar Krey
parent ed5a59b16c
commit 90d05c9a19
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ static struct log_data* parse_config(const char* line, struct plugin_handle* plu
else if (strcmp(cfg_settings_get_key(setting), "syslog") == 0)
{
int use_syslog = 0;
if (!string_to_boolean(cfg_settings_get_value(setting), &use_syslog))
if (string_to_boolean(cfg_settings_get_value(setting), &use_syslog))
{
data->logmode = (use_syslog) ? mode_syslog : mode_file;
}