From 1dd8c89f76e71d463b6e4f7dbfa301c4c68d8f08 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Sun, 29 Nov 2020 16:48:18 +0100 Subject: [PATCH] Capture newlines in log stdlib Capture newlines in the stdlib adapter messages. Avoids cutting off multi-line log messages. See: https://github.com/prometheus/node_exporter/issues/1886 Signed-off-by: Ben Kochie --- log/stdlib.go | 4 ++-- log/stdlib_test.go | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/log/stdlib.go b/log/stdlib.go index 2d030c456..0338edbe2 100644 --- a/log/stdlib.go +++ b/log/stdlib.go @@ -131,7 +131,7 @@ const ( logRegexpDate = `(?P[0-9]{4}/[0-9]{2}/[0-9]{2})?[ ]?` logRegexpTime = `(?P