mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-23 17:28:50 +02:00
Added traceback information
This commit is contained in:
@@ -5,7 +5,7 @@ from src.utils.rest import (rest_get, rest_delete, rest_post)
|
||||
import json
|
||||
from src.utils.nest_functions import (add_keys_nested_dict, nested_get)
|
||||
import sys, os
|
||||
|
||||
import traceback
|
||||
class Deleted_Downloads:
|
||||
# Keeps track of which downloads have already been deleted (to not double-delete)
|
||||
def __init__(self, dict):
|
||||
@@ -241,6 +241,7 @@ async def queue_cleaner(settings_dict, arr_type, defective_tracker):
|
||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
|
||||
logger.warning('>>> Queue cleaning failed on %s. (File: %s / Line: %s / Error Message: %s / Error Type: %s)', NAME, fname, exc_tb.tb_lineno, error, exc_type)
|
||||
|
||||
if settings_dict['LOG_LEVEL']=='DEBUG':
|
||||
print(traceback.format_exc())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user