Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
strudel2_backend
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
hpc-team
strudel2_backend
Commits
c8aec68f
Commit
c8aec68f
authored
2 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
reduce the debug levels
parent
0fbc8dad
No related branches found
No related tags found
2 merge requests
!95
Test
,
!94
Dev
Pipeline
#67613
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tes/tes_wsgi.py
+1
-1
1 addition, 1 deletion
tes/tes_wsgi.py
twsproxy/__init__.py
+1
-1
1 addition, 1 deletion
twsproxy/__init__.py
with
2 additions
and
2 deletions
tes/tes_wsgi.py
+
1
−
1
View file @
c8aec68f
...
...
@@ -2,7 +2,7 @@ import logging
from
logging.handlers
import
TimedRotatingFileHandler
FORMAT
=
"
[%(asctime)s %(thread)d %(levelname)s:%(process)s %(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s
"
logger
=
logging
.
getLogger
()
logger
.
setLevel
(
logging
.
DEBUG
)
logger
.
setLevel
(
logging
.
ERROR
)
handler
=
TimedRotatingFileHandler
(
filename
=
"
/var/log/strudel2/tes.log
"
,
when
=
'
h
'
,
interval
=
24
,
backupCount
=
7
)
formatter
=
logging
.
Formatter
(
FORMAT
)
handler
.
setFormatter
(
formatter
)
...
...
This diff is collapsed.
Click to expand it.
twsproxy/__init__.py
+
1
−
1
View file @
c8aec68f
...
...
@@ -198,7 +198,7 @@ def mainserver(port=None):
to_log
=
to_log
+
traceback
.
format_exc
()
logging
.
basicConfig
(
filename
=
os
.
path
.
expanduser
(
"
~/.tws.log
"
),
format
=
"
%(asctime)s %(levelname)s:%(process)s: %(message)s
"
)
logger
=
logging
.
getLogger
()
logger
.
setLevel
(
logging
.
DEBUG
)
logger
.
setLevel
(
logging
.
ERROR
)
if
to_log
is
not
None
:
logger
.
debug
(
to_log
)
logger
.
debug
(
"
starting TWS proxy
"
)
...
...
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