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

Fix printing output in aiomonitor console #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dolfinus
Copy link

Hi.

I've faced with a leaking memory in asynchronous one of my applications. I've installed aiomonitor package which allows me to investigate an issue without interrupting the main thread (like gdb does).

But objgraph package functions do not show any output. This is because sys.stdout in the main thread is the whole application output, not the current console. But aiomonitor handles print function calls and shows the result into the current console instead of whole application log.

So I've changed the way objgraph is showing the output - instead of using print(file=sys.stdout) or sys.stdout.write just the plain print function is used.
But feature of redirecting the output into a file or other stream is still working just as expected.

@dolfinus
Copy link
Author

Any updates here?

@dolfinus
Copy link
Author

@mgedmin Could you please take a look?

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.

1 participant