made apscheduler way less spammy
This commit is contained in:
parent
15db4bc210
commit
da707e8904
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import re
|
import re
|
||||||
|
import logging
|
||||||
|
|
||||||
from typing import List, Dict, Union, Optional
|
from typing import List, Dict, Union, Optional
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
@ -68,7 +69,7 @@ class Treepuncher(MinecraftClient):
|
||||||
self._register_handlers()
|
self._register_handlers()
|
||||||
|
|
||||||
self.scheduler = AsyncIOScheduler()
|
self.scheduler = AsyncIOScheduler()
|
||||||
# self.scheduler.add_job(job, "interval", seconds=3)
|
logging.getLogger('apscheduler.executors.default').setLevel(logging.WARNING) # So it's way less spammy
|
||||||
self.scheduler.start(paused=True)
|
self.scheduler.start(paused=True)
|
||||||
|
|
||||||
async def start(self):
|
async def start(self):
|
||||||
|
|
Loading…
Reference in a new issue