webui: enable file logging when the log file is set through GUI

This commit is contained in:
Jaroslav Kysela 2014-07-30 12:39:31 +02:00
parent 5c250565e1
commit 166a9504f0

View file

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