From 8e3e3cf27bd9001849faa4e7a010175655231fc3 Mon Sep 17 00:00:00 2001 From: "roberto@oneiric64" Date: Tue, 13 Dec 2011 20:42:39 +0100 Subject: [PATCH] set level to 5 in graylog2 plugin --- plugins/graylog2/graylog2_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/graylog2/graylog2_plugin.c b/plugins/graylog2/graylog2_plugin.c index bbe11303..379f0efb 100644 --- a/plugins/graylog2/graylog2_plugin.c +++ b/plugins/graylog2/graylog2_plugin.c @@ -81,7 +81,7 @@ ssize_t uwsgi_graylog2_logger(struct uwsgi_logger *ul, char *message, size_t len if (truncated) truncated = 128 - (truncated-1); else (truncated = g2c.escaped_len); - int rlen = snprintf(g2c.json_buf, MAX_GELF, "{ \"version\": \"1.0\", \"host\": \"%s\", \"short_message\": \"%.*s\", \"full_message\": \"%.*s\", \"timestamp\": %d, \"facility\": \"uWSGI-%s\" }", + int rlen = snprintf(g2c.json_buf, MAX_GELF, "{ \"version\": \"1.0\", \"host\": \"%s\", \"short_message\": \"%.*s\", \"full_message\": \"%.*s\", \"timestamp\": %d, \"level\": 5, \"facility\": \"uWSGI-%s\" }", g2c.host, truncated, g2c.escaped_buf, (int)g2c.escaped_len, g2c.escaped_buf, (int) time(NULL), UWSGI_VERSION); if (rlen > 0) {