Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log rotation and formatting #213

Closed
wants to merge 12 commits into from
Next Next commit
Return value coherent to logging type macros.
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 committed Feb 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 17b11e5d51ecaeb6a94adb45768da74a52a46df8
2 changes: 1 addition & 1 deletion src/libpgagroal/configuration.c
Original file line number Diff line number Diff line change
@@ -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