1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

companion.py: Switch to using EDMCLogging.get_main_logger()

So that we use the correct one for GUI versus CLI.
This commit is contained in:
Athanasius 2020-09-22 15:37:56 +01:00
parent edc6ed6596
commit 22b3362c20

View File

@ -9,7 +9,6 @@ protocol used for the callback.
import base64
import csv
import hashlib
import logging
import numbers
import os
import random
@ -26,9 +25,10 @@ from typing import TYPE_CHECKING, Any, Dict, List, NewType, Union
import requests
from config import appname, appversion, config
from EDMCLogging import get_main_logger
from protocol import protocolhandler
logger = logging.getLogger(appname)
logger = get_main_logger()
if TYPE_CHECKING:
_ = lambda x: x # noqa: E731 # to make flake8 stop complaining that the hacked in _ method doesnt exist