1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-07 19:03:23 +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 base64
import csv import csv
import hashlib import hashlib
import logging
import numbers import numbers
import os import os
import random import random
@ -26,9 +25,10 @@ from typing import TYPE_CHECKING, Any, Dict, List, NewType, Union
import requests import requests
from config import appname, appversion, config from config import appname, appversion, config
from EDMCLogging import get_main_logger
from protocol import protocolhandler from protocol import protocolhandler
logger = logging.getLogger(appname) logger = get_main_logger()
if TYPE_CHECKING: if TYPE_CHECKING:
_ = lambda x: x # noqa: E731 # to make flake8 stop complaining that the hacked in _ method doesnt exist _ = lambda x: x # noqa: E731 # to make flake8 stop complaining that the hacked in _ method doesnt exist