Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
Mirrors
mutalyzer
Commits
76ccaf40
Commit
76ccaf40
authored
10 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Log errors to standard output in production mode
parent
2fc16d8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mutalyzer/entrypoints/service_json.py
+8
-0
8 additions, 0 deletions
mutalyzer/entrypoints/service_json.py
mutalyzer/entrypoints/service_soap.py
+8
-0
8 additions, 0 deletions
mutalyzer/entrypoints/service_soap.py
mutalyzer/website/__init__.py
+8
-0
8 additions, 0 deletions
mutalyzer/website/__init__.py
with
24 additions
and
0 deletions
mutalyzer/entrypoints/service_json.py
+
8
−
0
View file @
76ccaf40
...
...
@@ -19,14 +19,22 @@ You can also use the built-in HTTP server by running this file directly.
import
argparse
import
logging
import
sys
from
wsgiref.simple_server
import
make_server
from
spyne.server.wsgi
import
WsgiApplication
from
..config
import
settings
from
..services
import
json
# Setup logging.
log_level
=
logging
.
INFO
if
settings
.
DEBUG
else
logging
.
ERROR
logging
.
basicConfig
(
level
=
log_level
)
logging
.
getLogger
(
'
spyne.protocol.xml
'
).
setLevel
(
log_level
)
#: WSGI application instance.
application
=
WsgiApplication
(
json
.
application
)
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/entrypoints/service_soap.py
+
8
−
0
View file @
76ccaf40
...
...
@@ -19,14 +19,22 @@ You can also use the built-in HTTP server by running this file directly.
import
argparse
import
logging
import
sys
from
wsgiref.simple_server
import
make_server
from
spyne.server.wsgi
import
WsgiApplication
from
..config
import
settings
from
..services
import
soap
# Setup logging.
log_level
=
logging
.
INFO
if
settings
.
DEBUG
else
logging
.
ERROR
logging
.
basicConfig
(
level
=
log_level
)
logging
.
getLogger
(
'
spyne.protocol.xml
'
).
setLevel
(
log_level
)
#: WSGI application instance.
application
=
WsgiApplication
(
soap
.
application
)
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/website/__init__.py
+
8
−
0
View file @
76ccaf40
...
...
@@ -3,6 +3,7 @@ Mutalyzer website interface using the Flask framework.
"""
import
logging
import
os
import
pkg_resources
...
...
@@ -67,6 +68,13 @@ def create_app():
from
mutalyzer.website.views
import
website
app
.
register_blueprint
(
website
)
@app.before_first_request
def
setup_logging
():
if
not
settings
.
DEBUG
:
# In production mode, log errors to standard error.
app
.
logger
.
addHandler
(
logging
.
StreamHandler
())
app
.
logger
.
setLevel
(
logging
.
ERROR
)
@app.teardown_appcontext
def
shutdown_session
(
exception
=
None
):
session
.
remove
()
...
...
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