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

[Python] Fix duplicated logs #3089

Merged
merged 4 commits into from
Dec 14, 2023
Merged

[Python] Fix duplicated logs #3089

merged 4 commits into from
Dec 14, 2023

Conversation

rokatyy
Copy link
Contributor

@rokatyy rokatyy commented Dec 14, 2023

No description provided.

@TomerShor
Copy link
Contributor

@rokatyy please update this comment as well:

# register to the SIGUSR1 signal, used to signal draining

@TomerShor
Copy link
Contributor

Use this when logging signals in the python wrapper - https://stackoverflow.com/a/35996948

@@ -233,7 +231,7 @@ def _on_drain_signal(self, signal_number, frame):
self._is_drain_needed = True

def _on_termination_signal(self, signal_number, frame):
self._logger.debug_with('Received signal, calling termination callback', signal=signal_number)
self._logger.debug_with('Received signal, calling termination callback', signal=signal_number.name)
Copy link
Contributor

Choose a reason for hiding this comment

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

same here :|

@TomerShor TomerShor changed the title [Python runtime] Fix duplicated logs [Python] Fix duplicated logs Dec 14, 2023
@TomerShor TomerShor merged commit 8fcf155 into nuclio:development Dec 14, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants