log-handler: fix console logs
server->n_consoles was not incremented until after console_init.
But the log handler already made use of that value to decide which
filename to use for logging, in the case of config with no sections.
This fix avoids use of server->n_consoles in favor of looking at the
number of sections in the config.
Change-Id: Ic19802808197557cd1f632c63a0123604a619039
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/test/meson.build b/test/meson.build
index d8bcb60..d36d15c 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -37,6 +37,7 @@
server_tests = [
'test-console-logs-to-file',
+ 'test-console-logs-to-file-no-sections',
'test-console-socket-read',
'test-console-socket-write',
'test-multiple-consoles',