wsd/Storage.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 6bb38614bdc6b37867bdd179eb18eecae4109452
Author: Pranav Kant <[email protected]>
Date:   Fri Mar 23 16:46:18 2018 +0530

    Some helpful logging
    
    Change-Id: I75e5e6cbbecf1e1af94a6710ecab4ced5637f14f

diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp
index 5ff0dc822..f25220894 100644
--- a/wsd/Storage.cpp
+++ b/wsd/Storage.cpp
@@ -268,7 +268,8 @@ std::string LocalStorage::loadStorageFileToLocal(const 
Authorization& /*auth*/)
     if (!Poco::File(_jailedFilePath).exists() && link(publicFilePath.c_str(), 
_jailedFilePath.c_str()) == -1)
     {
         // Failed
-        LOG_WRN("link(\"" << publicFilePath << "\", \"" << _jailedFilePath << 
"\") failed. Will copy.");
+        LOG_WRN("link(\"" << publicFilePath << "\", \"" << _jailedFilePath << 
"\") failed. Will copy. "
+                "Linking error: " << errno << " " << strerror(errno));
     }
 
     try
@@ -303,7 +304,7 @@ StorageBase::SaveResult 
LocalStorage::saveLocalFileToStorage(const Authorization
 {
     try
     {
-        LOG_TRC("Saving local file to local file storage " << _isCopy << " for 
" << _jailedFilePath);
+        LOG_TRC("Saving local file to local file storage (isCopy: " << _isCopy 
<< ") for " << _jailedFilePath);
         // Copy the file back.
         if (_isCopy && Poco::File(_jailedFilePath).exists())
         {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to