mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 12:30:00 +00:00
Merge remote-tracking branch 'github/fix-admin-view-log-file'
This commit is contained in:
commit
b29b5b7ac1
@ -671,8 +671,12 @@ def view_logfile():
|
|||||||
logfiles = {}
|
logfiles = {}
|
||||||
logfiles[0] = logger.get_logfile(config.config_logfile)
|
logfiles[0] = logger.get_logfile(config.config_logfile)
|
||||||
logfiles[1] = logger.get_accesslogfile(config.config_access_logfile)
|
logfiles[1] = logger.get_accesslogfile(config.config_access_logfile)
|
||||||
return render_title_template("logviewer.html",title=_(u"Logfile viewer"), accesslog_enable=config.config_access_log,
|
return render_title_template("logviewer.html",
|
||||||
logfiles=logfiles, page="logfile")
|
title=_(u"Logfile viewer"),
|
||||||
|
accesslog_enable=config.config_access_log,
|
||||||
|
log_enable=bool(config.config_logfile != logger.LOG_TO_STDOUT),
|
||||||
|
logfiles=logfiles,
|
||||||
|
page="logfile")
|
||||||
|
|
||||||
|
|
||||||
@admi.route("/ajax/log/<int:logtype>")
|
@admi.route("/ajax/log/<int:logtype>")
|
||||||
|
Loading…
Reference in New Issue
Block a user