OPENSOURCE_FINDINGS_PYTHON Telegram 135
🚀 New issue to ag2ai/faststream by @aleksandrtikhonov
📝 Bug: missing error logs when broker initialize with argument log_level=logging.DEBUG (#2585)

Describe the bug
Missing ERROR logs when broker initialize with argument log_level=logging.DEBUG

How to reproduce
Include source code:

from faststream import FastStream
from faststream.confluent import KafkaBroker, KafkaRouter
from pydantic import BaseModel

broker = KafkaBroker("localhost:9092", log_level=logging.DEBUG)
router = KafkaRouter()
broker.include_router(router)
app = FastStream(broker)


class Suka(BaseModel):
suka_id: int


@router.subscriber("test")
async def suking(suka: Suka) -> None:
print(suka)

1. Send a message to a topic that does not match the expected model Suka.

Expected behavior
See error logs(error pydantic serializtion) in the console

Observed behavior
Error logs are missing.

Environment
faststream-0.6.0

Additional context
Provide any other relevant context or information about the problem here.

#good_first_issue #bug

sent via relator
😁12🗿3🌚2



tgoop.com/opensource_findings_python/135
Create:
Last Update:

🚀 New issue to ag2ai/faststream by @aleksandrtikhonov
📝 Bug: missing error logs when broker initialize with argument log_level=logging.DEBUG (#2585)

Describe the bug
Missing ERROR logs when broker initialize with argument log_level=logging.DEBUG

How to reproduce
Include source code:

from faststream import FastStream
from faststream.confluent import KafkaBroker, KafkaRouter
from pydantic import BaseModel

broker = KafkaBroker("localhost:9092", log_level=logging.DEBUG)
router = KafkaRouter()
broker.include_router(router)
app = FastStream(broker)


class Suka(BaseModel):
suka_id: int


@router.subscriber("test")
async def suking(suka: Suka) -> None:
print(suka)

1. Send a message to a topic that does not match the expected model Suka.

Expected behavior
See error logs(error pydantic serializtion) in the console

Observed behavior
Error logs are missing.

Environment
faststream-0.6.0

Additional context
Provide any other relevant context or information about the problem here.

#good_first_issue #bug

sent via relator

BY Находки в опенсорсе: Python


Share with your friend now:
tgoop.com/opensource_findings_python/135

View MORE
Open in Telegram


Telegram News

Date: |

Each account can create up to 10 public channels Channel login must contain 5-32 characters Done! Now you’re the proud owner of a Telegram channel. The next step is to set up and customize your channel. Other crimes that the SUCK Channel incited under Ng’s watch included using corrosive chemicals to make explosives and causing grievous bodily harm with intent. The court also found Ng responsible for calling on people to assist protesters who clashed violently with police at several universities in November 2019. Invite up to 200 users from your contacts to join your channel
from us


Telegram Находки в опенсорсе: Python
FROM American