Administrator
2023-02-10 a7a394e1525cfb85aff1ba02f0961dbb07748bc8
l2/l2_log.py
@@ -1,15 +1,17 @@
from log import logger_l2_trade_cancel, logger_l2_trade_buy, logger_l2_trade
def debug(random_key, code, content, *args):
    logger_l2_trade.debug(("thread-id={} code={}  ".format(random_key, code) + content).format(*args))
threadIds = {}
def buy_debug(random_key, code, content, *args):
def debug( code, content, *args):
    logger_l2_trade.debug(("thread-id={} code={}  ".format(threadIds.get(code), code) + content).format(*args))
def buy_debug(code, content, *args):
    logger_l2_trade_buy.debug(
        ("thread-id={} code={}  ".format(random_key, code) + content).format(*args))
        ("thread-id={} code={}  ".format(threadIds.get(code), code) + content).format(*args))
def cancel_debug(random_key, code, content, *args):
def cancel_debug(code, content, *args):
    logger_l2_trade_cancel.debug(
        ("thread-id={} code={}  ".format(random_key, code) + content).format(*args))
        ("thread-id={} code={}  ".format(threadIds.get(code), code) + content).format(*args))