Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Managetests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Managetests
Commits
0bc69cfb
Commit
0bc69cfb
authored
Dec 11, 2015
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log frontend exceptions to the standard output
parent
25512029
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
managetests/frontend/__init__.py
managetests/frontend/__init__.py
+7
-0
No files found.
managetests/frontend/__init__.py
View file @
0bc69cfb
...
...
@@ -16,6 +16,7 @@
import
queue
import
threading
import
logging
import
flask
...
...
@@ -70,4 +71,10 @@ def create_app(manager, processor):
processor
.
append
(
flask
.
request
.
json
)
return
"OK"
,
200
# Because it's impossible to run this app in debug mode, this handler
# prints exceptions to the standard output
handler
=
logging
.
StreamHandler
()
handler
.
setLevel
(
logging
.
INFO
)
app
.
logger
.
addHandler
(
handler
)
return
app
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