made apscheduler way less spammy

This commit is contained in:
əlemi 2021-11-24 11:31:11 +01:00
parent 15db4bc210
commit da707e8904

View file

@ -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):