paperbox r196 - in trunk: . src



Author: markoa
Date: Sat Oct  4 21:15:10 2008
New Revision: 196
URL: http://svn.gnome.org/viewvc/paperbox?rev=196&view=rev

Log:
On exceptions, log document URIs

Modified:
   trunk/ChangeLog
   trunk/src/document.cc

Modified: trunk/src/document.cc
==============================================================================
--- trunk/src/document.cc	(original)
+++ trunk/src/document.cc	Sat Oct  4 21:15:10 2008
@@ -166,7 +166,8 @@
             page_count_ = Glib::Util::convert_to<int>(page_count);
         } catch (const Glib::Util::BadConversion& ex) {
             LOG_EXCEPTION("could not convert page count string '"
-                    << page_count << "' to an integer.");
+                    << page_count << "' to an integer for document "
+                    << uri_.raw());
             // In bugs like #552648, this would be the case of trackerd
             // returned page count string being '119 1', '8 1' etc.
             // So let's try to split by whitespace and try to convert
@@ -202,7 +203,8 @@
         } catch (const Glib::Util::BadConversion& ex) {
             // no special handling here, as there have been no reports yet
             LOG_EXCEPTION("could not convert word count string '"
-                    << word_count << "' to integer, setting to zero.");
+                    << word_count << "' to integer, setting to zero for "
+                    << "document " << uri_.raw());
             word_count_ = 0;
         }
     }



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