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

Within @at_cleanup method, print only goes to standard out, not node's console #325

Open
justparking opened this issue May 12, 2024 · 0 comments

Comments

@justparking
Copy link
Contributor

Not that @at_cleanup is used all that much but I've just noticed that using print will cause output to go ONLY to standard out process stream, not the node's console:

@at_cleanup
def cleanup_resources():
  console.info("Cleaning up...")
  _importantResource.close()
  print "All cleaned up!"

After that node is recycled or shutdown, only the text Cleaning up... goes to the console. All cleaned up! ends up in the general standard out for that JVM process.

print normally strictly goes to the node's console.

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

No branches or pull requests

1 participant