From 166a9504f0946c4b0a0527a4c0a230f5fe65ed1c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 30 Jul 2014 12:39:31 +0200 Subject: [PATCH] webui: enable file logging when the log file is set through GUI --- src/webui/extjs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webui/extjs.c b/src/webui/extjs.c index 23960313..bb177c25 100755 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -1636,6 +1636,8 @@ extjs_tvhlog(http_connection_t *hc, const char *remain, void *opaque) tvhlog_options |= TVHLOG_OPT_DBG_SYSLOG; else tvhlog_options &= ~TVHLOG_OPT_DBG_SYSLOG; + if (tvhlog_path && tvhlog_path[0] != '\0') + tvhlog_options |= TVHLOG_OPT_DBG_FILE; tvhlog_set_trace(http_arg_get(&hc->hc_req_args, "tvhlog_trace")); tvhlog_set_debug(http_arg_get(&hc->hc_req_args, "tvhlog_debug")); pthread_mutex_unlock(&tvhlog_mutex);