[gnome-documents/gnome-3-10] documents: Add debug messages for failing to use a thumbnail file



commit afca3ade2d847817c076cffcb5cab84776af0070
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 24 17:39:43 2013 +0100

    documents: Add debug messages for failing to use a thumbnail file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720533

 src/documents.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index c600067..aa4e408 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -448,6 +448,7 @@ const DocCommon = new Lang.Class({
                                     this.thumbnailed = true;
                                     this._setOrigPixbuf(pixbuf);
                                 } catch (e) {
+                                    log('Unable to create pixbuf from ' + thumbFile.get_uri() + ': ' + 
e.toString());
                                     this._failedThumbnailing = true;
                                 }
 
@@ -455,6 +456,7 @@ const DocCommon = new Lang.Class({
                                 stream.close_async(0, null, null);
                             }));
                 } catch (e) {
+                    log('Unable to read file at ' + thumbFile.get_uri() + ': ' + e.toString());
                     this._failedThumbnailing = true;
                 }
             }));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]