Skip to content

Commit c9366ba

Browse files
committed
fix(myapp): fix the bug with logger
1 parent d156163 commit c9366ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/myapp/management/commands/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: ANN003, ANN002
4848
self.config, created = WorkerConfiguration.objects.get_or_create(name=self.NAME)
4949

5050
if created:
51-
logging.critical("WorkerConfiguration created: %s", self.NAME)
51+
self.logger.critical("WorkerConfiguration created: %s", self.NAME)
5252

5353
self.current_log_level = self.logger.getEffectiveLevel()
5454
self.keep_running = True

0 commit comments

Comments
 (0)