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

[Functions] Completed work for PR #7555 to allow customizable function logging #10389

Merged
merged 6 commits into from
Apr 29, 2021

Conversation

devinbost
Copy link
Contributor

@devinbost devinbost commented Apr 26, 2021

This PR completes the work started by @g0715158 in PR #7555 to allow customization of the Pulsar function log level.
I created a new PR because it looked like the branch for that repo (g0715158:master) involved a change for a different issue, and Github indicated the repo had been deleted. (I was unable to find the original commits on that repo in a branch.)

@g0715158 Please let me know if you'd like to create a branch with your changes so you can get credit for your work. (In that case, I'll delete this PR and add my commits to your branch.)

Fixes #10205

@devinbost
Copy link
Contributor Author

Please verify these changes @jerrypeng @cdbartholomew @vaihtovirta @eolivelli

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very useful!

+1

@devinbost
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@devinbost
Copy link
Contributor Author

/pulsarbot run-failure-checks

@devinbost
Copy link
Contributor Author

@eolivelli I made some additional changes to make this feature more robust. Please review the new changes.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still great

@devinbost
Copy link
Contributor Author

/pulsarbot run-failure-checks

@devinbost devinbost changed the title Completed work for PR #7555 to allow customizable function logging [Functions] Completed work for PR #7555 to allow customizable function logging Apr 27, 2021
@devinbost
Copy link
Contributor Author

I tested this in production, and it works great.
@merlimat @sijie ?

@eolivelli
Copy link
Contributor

@devinbost will this patch apply to branch-2.7?

Or does it need some dependencies?

@devinbost
Copy link
Contributor Author

@eolivelli Yes, this applies to branch-2.7 and doesn't have any other dependencies.

eolivelli pushed a commit that referenced this pull request May 3, 2021
…n logging (#10389)

* Completed work for PR #7555 to allow customizable function logging

* Fixed license header

* PR #10389 Added null check to prevent test failures.

* PR #10389 Added debug logging statement

* PR #10389 Made changes more robust, added default value, and fixed NullPointerException

* PR #10389 Improved backwards compatibility

Co-authored-by: Devin Bost <dbost@overstock.com>
(cherry picked from commit d757db1)
@eolivelli
Copy link
Contributor

cherry picked to branch-2.7

@eolivelli eolivelli added this to the 2.8.0 milestone May 3, 2021
@eolivelli eolivelli added cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.2 labels May 3, 2021
@Anonymitaet Anonymitaet added the doc-required Your PR changes impact docs and you will update later. label May 6, 2021
@Anonymitaet
Copy link
Member

Hi @devinbost thanks for your great work. I'm adding docs for this PR but have some questions documented here, could you please take a look? Many thanks!

@devinbost devinbost deleted the configurable_function_logs branch May 17, 2021 19:47
@devinbost
Copy link
Contributor Author

@Anonymitaet Thanks for your help with the docs. I'll get this taken care of today.

@devinbost
Copy link
Contributor Author

@Anonymitaet Please see #10617

@Anonymitaet
Copy link
Member

@devinbost many thanks for your contribution. I've reviewed your doc PR, PTAL.

codelipenghui pushed a commit that referenced this pull request May 18, 2021
…10617)

This PR documents the feature added by #10389 and provides some additional information about how to use Log4j in Pulsar to configure Pulsar Function log levels.
@Anonymitaet Anonymitaet removed the doc-required Your PR changes impact docs and you will update later. label May 20, 2021
yangl pushed a commit to yangl/pulsar that referenced this pull request Jun 23, 2021
…ion (apache#10617)

This PR documents the feature added by apache#10389 and provides some additional information about how to use Log4j in Pulsar to configure Pulsar Function log levels.
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
…ion (apache#10617)

This PR documents the feature added by apache#10389 and provides some additional information about how to use Log4j in Pulsar to configure Pulsar Function log levels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Functions] Need a way to enable debug log level in functions running in production
4 participants