aboutsummaryrefslogtreecommitdiff
path: root/nDPIsrvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r--nDPIsrvd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c
index 6ac6894c9..c2478f452 100644
--- a/nDPIsrvd.c
+++ b/nDPIsrvd.c
@@ -1185,8 +1185,9 @@ static int handle_collector_protocol(int epollfd, struct remote_desc * const cur
{
logger_nDPIsrvd(current,
"BUG: Collector connection",
- "invalid JSON string: %.*s",
- (int)current->event_collector_un.json_bytes,
+ "invalid JSON string: %.*s...",
+ (int)current->event_collector_un.json_bytes > 512 ? 512
+ : (int)current->event_collector_un.json_bytes,
json_read_buffer->buf.ptr.text);
disconnect_client(epollfd, current);
return 1;