mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #932] Ability to change log level #144
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Meemaw on GitHub (Sep 25, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/932
By default,
fake-gcs-serveris quite spammy, doing info logging for every request.Add an ability to change the log level to e.g
warn/error@fsouza commented on GitHub (Sep 25, 2022):
That sounds good to me. We can add a new flag (and eventually an environment variable when we solve #561).
@RachitSharma2001 commented on GitHub (Dec 25, 2022):
@fsouza @Meemaw I was wondering if I could pick this task up. My idea is to include a
log-levelflag which can be one of two options:Let me know what you think of this idea and if there is anything else I should change or add.
@fsouza commented on GitHub (Dec 28, 2022):
Hey @RachitSharma2001, I was thinking the flag would be a string and take anything that logrus accept. You could call
ParseLeveland if that fails, you report an error to the user indicating invalid log level or something like that.@RachitSharma2001 commented on GitHub (Dec 28, 2022):
That sounds good! I have made a PR for this. Let me know if there is anything that should be changed or added.