Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Pierre-Yves David
swh-web
Commits
bad9fb95
Commit
bad9fb95
authored
9 years ago
by
Nicolas Dandrimont
Browse files
Options
Downloads
Patches
Plain Diff
main: add logging
parent
636f979b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/web/ui/main.py
+3
-2
3 additions, 2 deletions
swh/web/ui/main.py
with
3 additions
and
2 deletions
swh/web/ui/main.py
+
3
−
2
View file @
bad9fb95
...
...
@@ -4,6 +4,7 @@
# See top-level LICENSE file for more information
import
logging
import
os
from
flask
import
Flask
...
...
@@ -52,8 +53,8 @@ def run_from_webserver(environ, start_response):
app
.
secret_key
=
conf
[
'
secret_key
'
]
app
.
config
[
'
conf
'
]
=
conf
handler
=
logging
.
StreamHandler
()
app
.
logger
.
addHandler
(
handler
)
logging
.
basicConfig
(
filename
=
os
.
path
.
join
(
conf
[
'
log_dir
'
],
'
web-ui.log
'
),
level
=
logging
.
INFO
)
return
app
(
environ
,
start_response
)
...
...
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