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

Record log event #555

Merged
merged 6 commits into from
May 31, 2022
Merged

Record log event #555

merged 6 commits into from
May 31, 2022

Conversation

lrafeei
Copy link
Contributor

@lrafeei lrafeei commented May 26, 2022

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

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
@lrafeei lrafeei requested a review from a team May 26, 2022 22:33
@github-actions
Copy link

github-actions bot commented May 26, 2022

MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
❌ PYTHON bandit 24 1 2.8s
✅ PYTHON black 24 17 0 7.76s
❌ PYTHON flake8 24 2 2.7s
✅ PYTHON isort 24 17 0 0.36s
❌ PYTHON pylint 24 265 19.13s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

@TimPansino TimPansino requested a review from umaannamalai May 27, 2022 23:41
if application and application.enabled:
application.record_log_event(message, level, timestamp, priority=priority)
else:
_logger.debug(
Copy link
Contributor

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.

Copy link
Contributor

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.

@umaannamalai umaannamalai merged commit 2c4f46b into develop-logging May 31, 2022
@umaannamalai umaannamalai deleted the feature-record-log-event branch May 31, 2022 17:50
@TimPansino TimPansino added this to the v7.12.0.176 milestone Jun 8, 2022
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

Successfully merging this pull request may close these issues.

3 participants