From c5d266ff72a10c3cfc73cdf6223c0bf8642fe3d8 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 5 Aug 2016 22:15:41 +0200 Subject: [PATCH] better defaults for logging to file and stderr. https://bugs.eressea.de/view.php?id=2224 --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 4285df150..ba1241564 100644 --- a/src/main.c +++ b/src/main.c @@ -152,7 +152,9 @@ static int verbosity_to_flags(int verbosity) { static int parse_args(int argc, char **argv, int *exitcode) { - int i, log_stderr = 0, log_flags = 0; + int i; + int log_stderr = LOG_CPERROR; + int log_flags = LOG_CPERROR | LOG_CPWARNING | LOG_CPINFO; for (i = 1; i != argc; ++i) { char *argi = argv[i];