From 214411a10fa79520731a77881b44baf4d0899a5a Mon Sep 17 00:00:00 2001
From: robk-tahoe <robk-tahoe@allmydata.com>
Date: Wed, 23 Jan 2008 18:22:23 -0700
Subject: [PATCH] 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
---
 mac/pkgreshook.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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)
-- 
2.45.2