aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-15 22:04:03 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-16 14:26:14 +0100
commit6161ca2083f0b4f2a7684d6d49d917df84b95b7c (patch)
tree4e59882ca153c989d38191af8d9815d241674453
parent6632c263d958bf271d5d8ce12fe9fe1f93d444de (diff)
downloadsubsurface-6161ca2083f0b4f2a7684d6d49d917df84b95b7c.tar.gz
windows.c: enable verbose level 1 for desktop usage
If the user has not started Subsurface from a terminal make sure that verbosity is enabled (verbose = 1), so that the log files are populated with information useful for debugging. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--core/windows.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/windows.c b/core/windows.c
index ebee3436c..029c3516e 100644
--- a/core/windows.c
+++ b/core/windows.c
@@ -410,6 +410,7 @@ void subsurface_console_init(void)
console_desc.out = freopen("CON", "w", stdout);
console_desc.err = freopen("CON", "w", stderr);
} else {
+ verbose = 1; /* set the verbose level to '1' */
console_desc.out = freopen("subsurface_out.log", "w", stdout);
console_desc.err = freopen("subsurface_err.log", "w", stderr);
}