Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-SC
AsapoWorker
Commits
4b89063b
Commit
4b89063b
authored
Jan 07, 2021
by
Mikhail Karnevskiy
Browse files
Add substream name in logs
parent
a9ea0b6b
Pipeline
#1951
passed with stage
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/AsapoWorker/streamer.py
View file @
4b89063b
import
logging
import
logging
from
threading
import
Event
from
threading
import
Event
import
threading
from
asapo_producer
import
AsapoProducerError
from
asapo_producer
import
AsapoProducerError
from
AsapoWorker.errors
import
(
from
AsapoWorker.errors
import
(
TemporaryError
,
MissingDataError
,
ConfigurationError
,
EndOfStreamError
,
TemporaryError
,
MissingDataError
,
ConfigurationError
,
EndOfStreamError
,
...
@@ -239,6 +240,7 @@ class Streamer:
...
@@ -239,6 +240,7 @@ class Streamer:
def
run
(
self
):
def
run
(
self
):
try
:
try
:
threading
.
current_thread
().
name
=
f
"substream_
{
self
.
receiver
.
substream
}
"
if
self
.
metadata_receiver
:
if
self
.
metadata_receiver
:
log
.
info
(
"Waiting for substream metadata"
)
log
.
info
(
"Waiting for substream metadata"
)
while
not
self
.
stopped
.
is_set
():
while
not
self
.
stopped
.
is_set
():
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment