Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nlp_ws
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
nlp_ws
Commits
5a281cd4
Commit
5a281cd4
authored
2 years ago
by
bwalkow
Browse files
Options
Downloads
Patches
Plain Diff
Fix logging from src
parent
5aaef7bd
Branches
logging
No related merge requests found
Pipeline
#8117
passed with stage
Stage:
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nlp_ws/logserver.py
+2
-4
2 additions, 4 deletions
nlp_ws/logserver.py
with
2 additions
and
4 deletions
nlp_ws/logserver.py
+
2
−
4
View file @
5a281cd4
...
...
@@ -29,7 +29,7 @@ _main_logger = logging.getLogger(__name__.split('.', 1)[0])
# The logger that handles logs the remote loggers. It remains aside loggers for
# this library, accepts everything, logs nothing on its own and only handles
# received log records.
_service_logger
=
logging
.
getLogger
(
'
<service-remote>
'
)
_service_logger
=
logging
.
getLogger
(
'
src
'
)
_handler
=
None
...
...
@@ -84,9 +84,7 @@ def configure_loggers(logfile_name='service.log',
_main_logger
.
setLevel
(
parse_loglevel
(
local_log_level
))
_service_logger
.
addHandler
(
_handler
)
# Make sure this will accept everything. Worker loggers should do
# filtering.
_service_logger
.
setLevel
(
logging
.
NOTSET
)
_service_logger
.
setLevel
(
parse_loglevel
(
local_log_level
))
# Also log to stderr (usually will be screen). This does not require any
# fussing.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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