Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
b29b5b7a
Commit
b29b5b7a
authored
Jan 27, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'github/fix-admin-view-log-file'
parents
594c8aad
fc79cdfa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
admin.py
cps/admin.py
+6
-2
No files found.
cps/admin.py
View file @
b29b5b7a
...
@@ -671,8 +671,12 @@ def view_logfile():
...
@@ -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>"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment