common/Util.cpp |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit b1f1500b564a03438a4cb215e433ced555de43d8
Author: Henry Castro <[email protected]>
Date:   Wed Jan 31 15:31:44 2018 -0400

    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 <[email protected]>
    Tested-by: Michael Meeks <[email protected]>

diff --git a/common/Util.cpp b/common/Util.cpp
index a26b829b..9069d054 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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to