Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and ogabrielluiz committed Oct 28, 2024
1 parent 6992679 commit ef996e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/base/langflow/logging/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import TypedDict

import orjson
from loguru import logger, _defaults
from loguru import _defaults, logger
from loguru._error_interceptor import ErrorInterceptor
from loguru._file_sink import FileSink
from loguru._simple_sinks import AsyncSink
Expand Down Expand Up @@ -146,8 +146,7 @@ def __init__(self, file):
path=file,
rotation="10 MB", # Log rotation based on file size
)
super().__init__(self.write_async, None,
ErrorInterceptor(_defaults.LOGURU_CATCH, -1))
super().__init__(self.write_async, None, ErrorInterceptor(_defaults.LOGURU_CATCH, -1))

async def complete(self):
await asyncio.to_thread(self._sink.stop)
Expand Down

0 comments on commit ef996e4

Please # to comment.