-
Notifications
You must be signed in to change notification settings - Fork 111
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
Record log event #555
Record log event #555
Conversation
Co-authored-by: Lalleh Rafeei lrafeei@users.noreply.github.com Co-authored-by: Uma Annamalai umaannamalai@users.noreply.github.com Co-authored-by: Tim Pansino timpansino@users.noreply.github.com
MegaLinter status: ❌ ERROR
See errors details in artifact MegaLinter reports on CI Job page |
if application and application.enabled: | ||
application.record_log_event(message, level, timestamp, priority=priority) | ||
else: | ||
_logger.debug( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this debug message be edited? Since record_log_event is not currently a public API that customers can use, they will not be able to supply their own application object to the call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave it in, people will almost certainly use the API whether we make it officially public or not. Either way, it's a debug message. It might help someone or us in the future to leave it like that.
Co-authored-by: Lalleh Rafeei lrafeei@users.noreply.github.com
Co-authored-by: Uma Annamalai umaannamalai@users.noreply.github.com
Co-authored-by: Tim Pansino timpansino@users.noreply.github.com