mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fix logging
This commit is contained in:
parent
43ae9805e3
commit
6535c4f9b9
3 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,7 @@ def process(
|
||||||
and os.path.isdir(dir_name)
|
and os.path.isdir(dir_name)
|
||||||
and not os.path.dirname(dir_name) == dir_name
|
and not os.path.dirname(dir_name) == dir_name
|
||||||
):
|
):
|
||||||
log.postprocess(f'Deleting failed files and folder {dir_name}')
|
log.debug(f'Deleting failed files and folder {dir_name}')
|
||||||
remove_dir(dir_name)
|
remove_dir(dir_name)
|
||||||
# Return as failed to flag this in the downloader.
|
# Return as failed to flag this in the downloader.
|
||||||
return ProcessResult.failure(
|
return ProcessResult.failure(
|
||||||
|
|
|
@ -185,7 +185,7 @@ class PyMedusaApiV2(SickBeard):
|
||||||
# Log Medusa's PP logs here.
|
# Log Medusa's PP logs here.
|
||||||
if response.get('output'):
|
if response.get('output'):
|
||||||
for line in response['output']:
|
for line in response['output']:
|
||||||
log.postprocess(line)
|
log.debug(line)
|
||||||
|
|
||||||
# For now this will most likely always be True.
|
# For now this will most likely always be True.
|
||||||
# In the future we could return an exit state for when the PP in
|
# In the future we could return an exit state for when the PP in
|
||||||
|
|
|
@ -605,7 +605,7 @@ class SickBeard:
|
||||||
for line in response.iter_lines():
|
for line in response.iter_lines():
|
||||||
if line:
|
if line:
|
||||||
line = line.decode('utf-8')
|
line = line.decode('utf-8')
|
||||||
log.postprocess(line)
|
log.debug(line)
|
||||||
# if 'Moving file from' in line:
|
# if 'Moving file from' in line:
|
||||||
# input_name = os.path.split(line)[1]
|
# input_name = os.path.split(line)[1]
|
||||||
# if 'added to the queue' in line:
|
# if 'added to the queue' in line:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue