Skip to content

Host logger not logging to stdout without output buffer iteration #74

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

Closed
pkittenis opened this issue Feb 24, 2017 · 3 comments
Closed

Comments

@pkittenis
Copy link
Member

After enable_host_logger is used, logger will only log after output buffer iteration:

for line in output[host].stdout:
    pass
<host logger will log>
@pkittenis pkittenis added bug and removed bug labels Feb 24, 2017
@ideologysec
Copy link

I'm not sure if this is related, but I'm intermittently getting a message ""No handlers could be found for logger "pssh.ssh_client"" when I attempt to enable host logging. Not sure how to go about debugging or fixing this, though (kind of new to Python). I can share my code if that would be helpful at all.

@pkittenis
Copy link
Member Author

pkittenis commented Mar 15, 2017

It's not related nor a bug. See pssh.utils.enable_host_logger documentation if you want to make use of it.

@pkittenis
Copy link
Member Author

Well having said that, that message can be avoided by having a null handler attached by default. A PR for that would be welcome if you'd like.

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

2 participants