# HG changeset patch # User Sylvain Thénault # Date 1309276771 -7200 # Node ID 648bf83945a5823ee80ae7826a5c70ee58151440 # Parent 02c33819732217d447b9b46140fffc6cab55c2ac [etwist] log missing file even in debug mode diff -r 02c338197322 -r 648bf83945a5 etwist/server.py --- a/etwist/server.py Tue Jun 28 16:33:53 2011 +0200 +++ b/etwist/server.py Tue Jun 28 17:59:31 2011 +0200 @@ -193,13 +193,12 @@ for path in paths: dirpath, rid = self._resource(path) if rid is None: + # In production mode log an error, do not return a 404 + # XXX the erroneous content is cached anyway + LOGGER.error('concatenated data url error: %r file ' + 'does not exist', path) if self.config.debugmode: raise ConcatFileNotFoundError(path) - else: - # In production mode log an error, do not return a 404 - # XXX the erroneous content is cached anyway - LOGGER.error('concatenated data url error: %r file ' - 'does not exist', path) else: concat_data.append(open(osp.join(dirpath, rid)).read()) with open(filepath, 'wb') as f: