summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2018-01-31 15:31:44 -0400
committerMichael Meeks <michael.meeks@collabora.com>2018-01-31 22:06:57 +0100
commitb1f1500b564a03438a4cb215e433ced555de43d8 (patch)
tree3915d84b55af96411f62d33fbf45790c0360494e /common
parentMissing capabilities: Add hint to check mount options (diff)
downloadonline-b1f1500b564a03438a4cb215e433ced555de43d8.tar.gz
online-b1f1500b564a03438a4cb215e433ced555de43d8.zip
util: avoid logging when closing file descriptors
eventually the log file descriptor will be closed and unhandled exception it will throw it "terminate called after throwing an instance of 'Poco::WriteFileException' what(): Cannot write file" Change-Id: I1d6ae3a4d4d4910f2ed2cdc80b162c27f93d55d9 Reviewed-on: https://gerrit.libreoffice.org/49055 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'common')
-rw-r--r--common/Util.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/Util.cpp b/common/Util.cpp
index a26b829bb2..9069d054d1 100644
--- a/common/Util.cpp
+++ b/common/Util.cpp
@@ -142,9 +142,7 @@ namespace Util
continue;
if (close(fd) < 0)
- LOG_WRN("Unexpected failure to close fd " << fd);
- else
- LOG_TRC("Closed fd " << fd);
+ std::cerr << "Unexpected failure to close fd " << fd << std::endl;
}
closedir(fdDir);