fix: thread logger name
This commit is contained in:
parent
d220ac1963
commit
0ced5212e9
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ import asyncio
|
|||
import logging
|
||||
from collections import deque
|
||||
from pathlib import Path
|
||||
from threading import RLock, Thread
|
||||
from threading import RLock, Thread, current_thread
|
||||
from typing import Annotated
|
||||
|
||||
from bubus import EventBus, BaseEvent
|
||||
|
|
@ -32,7 +32,7 @@ class WoodpeckerRunner(Thread):
|
|||
self._bus = bus
|
||||
self._event: WoodpeckerEvent | None = None
|
||||
self._root = get_settings().git.path
|
||||
self.thread_logger = logging.getLogger(self.__class__.name)
|
||||
self.thread_logger = logging.getLogger(current_thread().ident)
|
||||
|
||||
def process_event(self, event: WoodpeckerEvent):
|
||||
self._event = event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue