Skip to content

Commit

Permalink
chore: remove loguru usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Nov 12, 2024
1 parent c09bf21 commit 576c8cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions faststream/nats/message.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Optional

from loguru import logger
from nats.aio.msg import Msg
from nats.js.api import ObjectInfo
from nats.js.kv import KeyValue
Expand All @@ -14,7 +13,6 @@ class NatsMessage(StreamMessage[Msg]):
async def ack(self) -> None:
# Check `self.raw_message._ackd` instead of `self.committed`
# to be compatible with `self.raw_message.ack()`
logger.debug(self.raw_message._ackd)
if not self.raw_message._ackd:
await self.raw_message.ack()
await super().ack()
Expand Down
4 changes: 0 additions & 4 deletions faststream/nats/publisher/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ async def publish( # type: ignore[override]
self,
cmd: "NatsPublishCommand",
) -> None:
from loguru import logger

logger.debug(cmd)

payload, content_type = encode_message(cmd.body)

headers_to_send = {
Expand Down

0 comments on commit 576c8cf

Please sign in to comment.