cshum / imagor

Fast, secure image processing server and Go library, using libvips
Apache License 2.0
3.46k stars 138 forks source link

Feature Request: Option for change loglevel? #386

Open leopku opened 1 year ago

leopku commented 1 year ago

Is there anyway to change loglevel for the default warn level?

cshum commented 1 year ago

The current available config is the -debug flag, which enables more verbose logging.

# both are equivalent

imagor -debug -imagor-secret 1234

DEBUG=1 IMAGOR_SECRET=1234 imagor
leopku commented 1 year ago

Actually, I wanna less details in production mode. For example: only error messages were shown.