Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3mon
Commits
10ba1cf9
Verified
Commit
10ba1cf9
authored
2 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Also display plots for gzipped logs
parent
5438e6b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!33
Also display plots for gzipped logs
Pipeline
#33202
passed
2 years ago
Stage: docker
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/app/routes.py
+1
-1
1 addition, 1 deletion
frontend/app/routes.py
frontend/app/templates/logs.html
+2
-4
2 additions, 4 deletions
frontend/app/templates/logs.html
with
3 additions
and
5 deletions
frontend/app/routes.py
+
1
−
1
View file @
10ba1cf9
...
...
@@ -223,7 +223,7 @@ def top10():
@requires_auth
def
logs
():
files
=
OrderedDict
()
filenames
=
sorted
(
glob
(
join
(
LOGS_PATH
,
"
MSG*.log
"
)),
filenames
=
sorted
(
glob
(
join
(
LOGS_PATH
,
"
MSG
_
*.log
*
"
)),
reverse
=
True
)
main_log
=
filenames
.
pop
(
-
1
)
for
filename
in
[
main_log
]
+
filenames
:
...
...
This diff is collapsed.
Click to expand it.
frontend/app/templates/logs.html
+
2
−
4
View file @
10ba1cf9
...
...
@@ -10,19 +10,17 @@
<div
class=
"col-md-12"
>
{% for filename, filesize in files.items() %}
{% if filename != 'MSG.log' %}
<div
style=
"width=100px; float:left; text-align: center; font-size: 10px"
>
<a
href=
"/logs/{{ filename }}"
>
<span>
{{ filename }}
</span>
</a><br
/>
<span>
({{'%0.1f' | format(filesize/1024/1024) }}MB)
<span><br
/>
<a
href=
"/logs/{{ filename|replace('.log', '.png') }}"
>
<img
src=
"/logs/{{ filename|replace('.log', '.png') }}"
<a
href=
"/logs/{{ filename|replace('.
gz', '')|replace('.
log', '.png') }}"
>
<img
src=
"/logs/{{ filename|replace('.
gz', '')|replace('.
log', '.png') }}"
width=
"100"
alt=
"{{ filename }} ({{'%0.1f' | format(filesize/1024/1024) }}MB)"
/>
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment