aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 9153803..2c918ac 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,6 +1,6 @@
#include "fcgi-debug.h"
-void log_raw_split(const gchar *head, gboolean from_server, guint con_id, GString *data) {
+void log_raw_split(const gchar *head, gboolean from_server, guint con_id, guint req_id, GString *data) {
const gchar *start = data->str, *end = start+data->len, *i;
GString *line = g_string_sized_new(0);
for ( ; start < end; ) {
@@ -30,14 +30,14 @@ void log_raw_split(const gchar *head, gboolean from_server, guint con_id, GStrin
g_string_append_c(line, c);
}
}
- g_print("%s from %s (%u): %s\n", head, from_server_to_string(from_server), con_id, line->str);
+ g_print("%s from %s (%u, %u): %s\n", head, from_server_to_string(from_server), con_id, req_id, line->str);
start = i;
}
g_string_free(line, TRUE);
}
-void log_raw(const gchar *head, gboolean from_server, guint con_id, GString *data) {
+void log_raw(const gchar *head, gboolean from_server, guint con_id, guint req_id, GString *data) {
GString *line = g_string_escape(data);
- g_print("%s from %s (%u): %s\n", head, from_server_to_string(from_server), con_id, line->str);
+ g_print("%s from %s (%u, %u): %s\n", head, from_server_to_string(from_server), con_id, req_id, line->str);
g_string_free(line, TRUE);
}