From da707e8904d9b0a297b376f55a9c0f40efcaabf2 Mon Sep 17 00:00:00 2001 From: alemidev Date: Wed, 24 Nov 2021 11:31:11 +0100 Subject: [PATCH] made apscheduler way less spammy --- treepuncher/treepuncher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/treepuncher/treepuncher.py b/treepuncher/treepuncher.py index d07908e..b544b5d 100644 --- a/treepuncher/treepuncher.py +++ b/treepuncher/treepuncher.py @@ -1,4 +1,5 @@ import re +import logging from typing import List, Dict, Union, Optional from enum import Enum @@ -68,7 +69,7 @@ class Treepuncher(MinecraftClient): self._register_handlers() 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) async def start(self):