From 58c4db925bfbdc8753ab41911ab64963b4031c77 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Jan 2015 19:13:55 +0100 Subject: [PATCH] output/recorder: log commit errors --- src/output/plugins/RecorderOutputPlugin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/RecorderOutputPlugin.cxx b/src/output/plugins/RecorderOutputPlugin.cxx index f83a2edbd..ae6e440a6 100644 --- a/src/output/plugins/RecorderOutputPlugin.cxx +++ b/src/output/plugins/RecorderOutputPlugin.cxx @@ -249,7 +249,9 @@ RecorderOutput::Commit(Error &error) inline void RecorderOutput::Close() { - Commit(IgnoreError()); + Error error; + if (!Commit(error)) + LogError(error); } inline void