Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect log level #115

Closed
marceloboeira opened this issue Apr 11, 2018 · 1 comment
Closed

Respect log level #115

marceloboeira opened this issue Apr 11, 2018 · 1 comment

Comments

@marceloboeira
Copy link
Member

I want to avoid overflowing my logs with:

{"FlagEvalResult":{"evalContext":{"entityID":"a8f155220fad675898b52160340a85e2","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:17Z","variantAttachment":{},"variantID":2,"variantKey":"heart"}}
{"FlagEvalResult":{"evalContext":{"entityID":"ea132b7d85d5fc333efda94088923f44","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:18Z","variantAttachment":{},"variantID":2,"variantKey":"heart"}}
{"FlagEvalResult":{"evalContext":{"entityID":"02f026d0f04d03818f5d41f3b73f062b","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:19Z","variantAttachment":{},"variantID":2,"variantKey":"heart"}}
{"FlagEvalResult":{"evalContext":{"entityID":"fa8f1f5ccbafcae6fe40f4d752019a1c","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:21Z","variantAttachment":{},"variantID":2,"variantKey":"heart"}}
{"FlagEvalResult":{"evalContext":{"entityID":"50f18fc583ed933f924256d28912cf26","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:22Z","variantAttachment":{},"variantID":1,"variantKey":"star"}}
{"FlagEvalResult":{"evalContext":{"entityID":"59caa1edad40e8147429eeb0c80ba700","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:24Z","variantAttachment":{},"variantID":1,"variantKey":"star"}}
{"FlagEvalResult":{"evalContext":{"entityID":"ebac32864a64579e52d3c9eb0a253a3c","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:26Z","variantAttachment":{},"variantID":2,"variantKey":"heart"}}
{"FlagEvalResult":{"evalContext":{"entityID":"34c4a87d0e8645fde4d11285c5ebc847","entityType":"user","flagID":1},"evalDebugLog":{"segmentDebugLogs":[]},"flagID":1,"flagSnapshotID":36,"segmentID":1,"timestamp":"2018-04-11T10:21:27Z","variantAttachment":{},"variantID":2,"variantKey":"heart"}}

Expected Behavior

LOG_LEVEL = warning -> disables logging of individual requests / flag eval results

@marceloboeira marceloboeira changed the title Add way to disable logs Respect log level Apr 11, 2018
@zhouzhuojie
Copy link
Collaborator

zhouzhuojie commented Apr 12, 2018

How about introducing a new env variable setting?
E.g. FLAGR_EVAL_LOGGING_ENABLED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants