Permalink
Browse files

debug logging for static file changes in run_Server fixed

  • Loading branch information...
1 parent 5de6f44 commit 13dc3c2ef9dcbeb13270b2ccce2443ae2987c3fb @glennyonemitsu committed May 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 sdklib/wsgi.py
View
@@ -271,13 +271,13 @@ def __call__(self):
try:
mtime = os.path.getmtime(f)
if f not in self.statics or mtime > self.statics[f]['mtime']:
+ if f in self.statics and mtime > self.statics[f]['mtime']:
+ logger.debug('Found new file update for: {0}'.format(f))
if f.startswith(css_path):
data = self.process_css(f)
elif f.startswith(js_path):
data = self.process_js(f)
self.statics[f] = {'mtime': mtime, 'data': data}
- if mtime > self.statics[f]['mtime']:
- logger.debug('Found new file update for: {0}'.format(f))
except OSError as e:
# ignoring OS Errors since it could be an editor creating
# scratch files momentarily

0 comments on commit 13dc3c2

Please sign in to comment.