From 2457ebf2dd1e3e54073b469cc19fb33615b1cea4 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 | 2 +- log/stdlib_test.go | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/log/stdlib.go b/log/stdlib.go index 2d030c456..2d2e9c060 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