#1441·Robyn

Production mode robyn --log-level WARN use depricated log level

Author: klausmyrsethCreated Sep 7, 2026Updated Sep 13, 2026
Labelsbug

Bug Description

We set our log level in the application starting so we dont use the command line toggles, but effect is the same.

If we set the new logging target to WARNING Robyn stays in dev mode, while using the deprecated WARN log level it goes into full production mode. This should probably be fixed as its been deprecated for quite a while now.

You might also want to add some documentation on how to configure logging from Robyn, was a bit of fidling to get it working properly :D

To be precise, i understand Rust server needs WARN but you should pick up on pythons log level WARNING and send WARN to rust too, you already do for the deprecated WARN inside python logging :)

Steps to Reproduce

  1. start robyn standard
  2. set logging level to WARNING in your code
  3. initiate robyn startup
  4. Enjoy the logs.

(if you do the same and set log level to WARN on step 2 it works as intended, check https://docs.python.org/3/library/logging.html#logging-levels for the current log levels)

Your operating system

Linux

Your Python version (python --version)

Other (specify below)

Your Robyn version

latest

Additional Info

I'm running python 3.14 has nothing to do with my python version WARN was depricated on 3.12 too.

It might be wise to support both WARN and WARNING as older pythons had WARN as the warning level while newer ones dont.