Skip to content

Commit

Permalink
Return value coherent to logging type macros.
Browse files Browse the repository at this point in the history
The as_logging_type() function must return
the default logging type PGAGROAL_LOGGING_TYPE_CONSOLE
that has the value 0.
This does not change the behaviour of the application
but makes the code coherent with other
configuration parsing functions.
  • Loading branch information
fluca1978 authored and jesperpedersen committed Feb 24, 2022
1 parent 7f8f04c commit 9f100f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libpgagroal/configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ as_logging_type(char* str)
if (!strcasecmp(str, "syslog"))
return PGAGROAL_LOGGING_TYPE_SYSLOG;

return 0;
return PGAGROAL_LOGGING_TYPE_CONSOLE;
}

static int
Expand Down

0 comments on commit 9f100f8

Please sign in to comment.