mirror of
https://github.com/Nick80835/microbot
synced 2025-08-22 18:19:16 +00:00
move log config out of bot init
This commit is contained in:
parent
22f51784f5
commit
9035363b80
@ -18,9 +18,10 @@ if sys.version_info.major < 3 or (sys.version_info.major == 3 and sys.version_in
|
|||||||
print("This program requires at least Python 3.9.0 to work correctly, exiting.")
|
print("This program requires at least Python 3.9.0 to work correctly, exiting.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=INFO)
|
||||||
|
logger = getLogger(__name__)
|
||||||
startup_time = time()
|
startup_time = time()
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
logger = getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class MicroBot():
|
class MicroBot():
|
||||||
@ -30,7 +31,6 @@ class MicroBot():
|
|||||||
loader = None
|
loader = None
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=INFO)
|
|
||||||
loop.run_until_complete(self._initialize_bot())
|
loop.run_until_complete(self._initialize_bot())
|
||||||
|
|
||||||
async def _initialize_bot(self):
|
async def _initialize_bot(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user