From 9f100f879eb608942ab409eb7c75af60bc0dd948 Mon Sep 17 00:00:00 2001 From: Luca Ferrari Date: Thu, 24 Feb 2022 09:44:55 -0500 Subject: [PATCH] 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. --- src/libpgagroal/configuration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpgagroal/configuration.c b/src/libpgagroal/configuration.c index 5e68ebac..e1998110 100644 --- a/src/libpgagroal/configuration.c +++ b/src/libpgagroal/configuration.c @@ -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