From: robk-tahoe Date: Thu, 24 Jan 2008 01:22:23 +0000 (-0700) Subject: eliminate startup spam for resources that can't be found X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/class-simplejson.JSONDecoder-index.html?a=commitdiff_plain;h=214411a10fa79520731a77881b44baf4d0899a5a;p=tahoe-lafs%2Ftahoe-lafs.git eliminate startup spam for resources that can't be found 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 --- diff --git a/mac/pkgreshook.py b/mac/pkgreshook.py index 61233778..bb1d985c 100644 --- a/mac/pkgreshook.py +++ b/mac/pkgreshook.py @@ -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)