]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
eliminate startup spam for resources that can't be found
authorrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 24 Jan 2008 01:22:23 +0000 (18:22 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 24 Jan 2008 01:22:23 +0000 (18:22 -0700)
remove debug messages (and traceback) from node output in the case that the
pkg resources hook can't find a requested file. it will now silently return
the empty string for files that can't be resolved

mac/pkgreshook.py

index 612337781780fd3c8bff7036ff3559216de37f65..bb1d985c60e232dbd76a86c198dfb230af7f462d 100644 (file)
@@ -36,9 +36,9 @@ def install():
                     #print 'returning %s' % (ret,)
                     return ret
                 except NotImplementedError:
-                    print 'get_resource_filename(%s,%s): not found' % (self._module_name, resource_name)
-                    import traceback
-                    traceback.print_exc()
+                    #print 'get_resource_filename(%s,%s): not found' % (self._module_name, resource_name)
+                    #import traceback
+                    #traceback.print_exc()
                     return ''
 
     pkg_resources.register_loader_type(zipimport.zipimporter, Provider)