-
Notifications
You must be signed in to change notification settings - Fork 75
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
Improve error handling in p0f plugin #175
Conversation
flimzy
commented
Dec 30, 2014
- This corrects a specific bug, where a socket connection failure was never reported (due to reporting
$@ instead of $ !) - And it makes all the present error logs more meaningful by mentioning 'p0f'
- IO::Socket::UNIX->new should never die, therefore... - $@ is always undef when the eval exits, so... - use $! instead
- Add "p0f" to error output to aide in debugging - Remove some no-ops which called only '... if $@', in a context where $@ would never be set, or never be meaningful.
Improve error handling in p0f plugin
Does this not just make all them error messages more redundant? Last I checked, plugin log messages look like this:
So before you change, an example error message was:
and now it's:
|
@msimerson what is responsible for prepending '(connect) ident::p0f: '? perhaps it's something that doesn't exist in our fork yet... or doesn't exist in upstream yet? :) |
@jaredj, I dunno. QP has done that for as long as I've used it. |
|
I suspect the code to prepend the plugin name, etc, is missing or non-functional in our fork, then. I'm in favor of rolling back that particular commit here, and investigating further on our fork. |
Not exactly; see issue #182 At any rate this PR has already been un-merged |