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
Scallion logging format error #128
Comments
instead of intercepting Tor's logv(), use the add_callback_log() to register a log callback that we can then use to direct log messages through Shadow's logging facilities. this happens automatically, so we no longer have to tell Tor to log to stdout. tor's log messages are currently filtered based on shadow's configured log level, but scallion can take a log level input if we need that to change. refs #128
|
I just tried the fix, and it looks like not all log lines end with \n, but some end with \0: |
|
@kloesing Does the |
|
The example data above comes from data/scallion.log. We're writing |
|
@kloesing Sorry, I'm still confused. Is the first part of your comment printed with Tor, and the second with Scallion? How can I reproduce this? With shadow master at commit 34e41c5, my log file looks like this: The newlines seem to be correctly printed in my minimal test case... |
|
Here's what I did to reproduce the problem: When I try to grep the resulting data/scallion.log, grep tells me: Binary file data/scallion.log matches I uploaded the scallion.log file here: https://people.torproject.org/~karsten/volatile/scallion-2013-05-23-issue128.log.gz |
|
Scallion used to intercept Tor's logv function to redirect it through Shadow's logging facilities. Since commit 78af9f7, Scallion instead registers a log callback with Tor. I found that Scallion is also now modifying Tor's log msg in place, meaning any log method that happens after our new callback has an unexpected modified msg as input. We should fix that. Also, commit 78af9f7 logs Tor log messages at the same level as shadow, meaning that your torrc files should no longer have a I do need to update the included examples in the resource/examples/scallion directory to remove the |
Tor uses its log msg for other callbacks, files, etc. So, we should not modify it in place, as otherwise those other methods will receive an input msg in an unexpected format. refs #128
|
Upgrading to latest Shadow master (fc36dfb) and taking out |
On tor-0.2.4.10-alpha, Scallion output is like:
It should be like:
The text was updated successfully, but these errors were encountered: