Skip to content

Excessive Pydantic warnings and noisy info logs when running directives (Ravyn 0.3.4 + Lilya 0.23.0 + Mongoz 0.13.0) #644

@snehu08

Description

@snehu08

Description
After upgrading to the latest versions of the framework, I am seeing excessive Pydantic warnings and info/debug logs in the terminal, console, and ravyn shell when running directives.

These logs appear even though:

I am not enabling debug logs

I am not explicitly configuring these loggers

Adding warnings.filterwarnings or disabling loggers does not stop them

This behavior started only after upgrading to:

Ravyn 0.3.4
Lilya 0.23.0
Mongoz 0.13.0

In previous versions, these warnings and logs were not displayed.

Steps to Reproduce
Install the following versions:

ravyn==0.3.4
lilya==0.23.0

Image

mongoz==0.13.0

Run any directive, for example:

ravyn run my_directive
Or open shell:

ravyn shell
Check terminal output.

Below i have been attached the screenshot also.

I have been tried to solve this issue only pydantic warnings are solved when I'm including warnings.filterwarnings("ignore", category=UserWarnings) in main init.py but this is not a correct way.

For this issue I just want the solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions