booh: slightly more debugging in verbose mode
authorGuillaume Cottenceau <gcottenc@gmail.com>
Wed, 24 Dec 2008 14:46:54 +0000 (15:46 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Wed, 24 Dec 2008 14:46:54 +0000 (15:46 +0100)
bin/booh

index 5a3a8db503f75af6229afcc37546a710efddb6dd..176e4a4595db86af874f39ebdf902def477430e8 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -881,6 +881,7 @@ def gen_real_thumbnail(type, origfile, destfile, xmldir, size, img, infotype)
         end
     }
     if usethread
+        msg 3, "generate thumbnail from new thread"
         Thread.new {
             genproc.call
             $gen_thumbnail_monitor.synchronize {
@@ -888,6 +889,7 @@ def gen_real_thumbnail(type, origfile, destfile, xmldir, size, img, infotype)
             }
         }
     else
+        msg 3, "generate thumbnail from current thread"
         genproc.call
     end
 end
@@ -2080,6 +2082,7 @@ def backend_wait_message(parent, msg, infopipe_path, mode)
     refresh_thread = Thread.new {
         directories_counter = 0
         while line = infopipe.gets
+            msg 3, "infopipe got data: #{line}"
             if line =~ /^directories: (\d+), sizes: (\d+)/
                 directories = $1.to_f + 1
                 sizes = $2.to_f