refeactor(logging): try to encode logs
This commit is contained in:
parent
98c09a6f9c
commit
ad9621641f
@ -11,7 +11,8 @@ def setup_logging(name):
|
|||||||
|
|
||||||
file_handler = logging.FileHandler(
|
file_handler = logging.FileHandler(
|
||||||
filename=f"{name}.log",
|
filename=f"{name}.log",
|
||||||
mode='w'
|
mode='w',
|
||||||
|
encoding="UTF-8"
|
||||||
#maxBytes=1024*1024,
|
#maxBytes=1024*1024,
|
||||||
#backupCount=5
|
#backupCount=5
|
||||||
)
|
)
|
||||||
|
@ -115,7 +115,6 @@ def create_tasks_in_tracker(data):
|
|||||||
# 'completedAt': task['completedAt']
|
# 'completedAt': task['completedAt']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
logger.debug('Request: %s', json.dumps(payload))
|
logger.debug('Request: %s', json.dumps(payload))
|
||||||
|
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
|
Loading…
Reference in New Issue
Block a user