-
Notifications
You must be signed in to change notification settings - Fork 481
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
Log HTTP response error codes in HTTP destination #855
Conversation
This looks good to me, I was just wondering if we could make java logs a bit more integrated to syslog-ng internal logging style. 👍 |
Signed-off-by: Laszlo Varady <laszlo.varady@balabit.com>
Signed-off-by: László Várady <laszlo.varady@balabit.com>
👍 |
I am not sure how java generated log messages appear in general. But yeah, This is fine, the formatting should change as a whole in a unified manner.
|
Currently, the InternalMessageSender class enables to send messages with different priorities but without any tags. JNIEXPORT void JNICALL
Java_org_syslog_1ng_InternalMessageSender_createInternalMessage(JNIEnv *env, jclass cls, jint pri, jstring message)
{
if ((pri != org_syslog_ng_InternalMessageSender_MsgDebug) || debug_flag)
{
const char *c_str = (*env)->GetStringUTFChars(env, message, 0);
msg_event_suppress_recursions_and_send(msg_event_create(pri, c_str, NULL));
(*env)->ReleaseStringUTFChars(env, message, c_str);
}
} |
I consider this an omission of the original implementation which should be But java destinations should be just as integrated with syslog-ng as if
|
Oh, I see. I will create a new issue about this. |
I'd merge this as-is, then a new PR should fix the java logmessage formatting issue. |
I agree. Bazsi On Thu, Jan 28, 2016 at 4:12 PM, Budai Laszlo notifications@github.com
|
Log HTTP response error codes in HTTP destination
I've merged it but I forget to ask for a rebase. I hope that the master is OK. |
we will see... :-) |
The integration protection that I have outlined earlier would have both caught this, and assured us whether this would be safe. |
Fixes: #669