Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: enable file logging when the log file is set through GUI
  • Loading branch information
perexg committed Jul 30, 2014
1 parent 5c25056 commit 166a950
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webui/extjs.c
Expand Up @@ -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);
Expand Down

0 comments on commit 166a950

Please sign in to comment.