From 0ca22796c7622119f521a79bfd73a8b4d33a9ca4 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Mon, 30 Nov 2020 03:00:37 +0100 Subject: [PATCH] Capture newlines in log stdlib (#1041) 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