better defaults for logging to file and stderr.

https://bugs.eressea.de/view.php?id=2224
This commit is contained in:
Enno Rehling 2016-08-05 22:15:41 +02:00
parent 03a8b7383c
commit c5d266ff72
1 changed files with 3 additions and 1 deletions

View File

@ -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];