fake-gcs-server
fake-gcs-server copied to clipboard
Ability to change log level
By default, fake-gcs-server
is quite spammy, doing info logging for every request.
Add an ability to change the log level to e.g warn/error
That sounds good to me. We can add a new flag (and eventually an environment variable when we solve #561).
@fsouza @Meemaw I was wondering if I could pick this task up. My idea is to include a log-level
flag which can be one of two options:
- info - log all http requests, warnings, and errors (basically everything)
- warn-error - log only warnings and errors Let me know what you think of this idea and if there is anything else I should change or add.
Hey @RachitSharma2001, I was thinking the flag would be a string and take anything that logrus accept. You could call ParseLevel
and if that fails, you report an error to the user indicating invalid log level or something like that.
That sounds good! I have made a PR for this. Let me know if there is anything that should be changed or added.