roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[💡 FEATURE REQUEST]: Add debug mode indication to plugin start log

Open Kaspiman opened this issue 1 year ago • 1 comments
trafficstars

Plugin

Server

I have an idea!

Hello! I often have to switch between debug mode and back.

It is not always clear what mode the server is in. What if we add this information for each plugin?

For example pool.debug or debug:

{"level":"debug","ts":1728138499360931181,"logger":"http","msg":"http server was started", "pool.debug": "true", "address":"0.0.0.0:8080"}

Kaspiman avatar Oct 05 '24 14:10 Kaspiman

Hey @Kaspiman 👋 Actually, a good idea. To do that, we need to add a some kind of Mode() Mode method to the static pool with 2 modes (atm), Debug and...hm, Production... Need to think about the non-debug mode name.

And then use this mode in plugins to check the pool state and print this info (once) in the logs under I think info log level.

rustatian avatar Oct 05 '24 16:10 rustatian