summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-16 12:44:14 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-16 12:44:14 +0000
commit88e0795b9ca7a6525049052bc4598db8380e7f85 (patch)
treeb515c97a5a51be35a4c1adde6653867f324aa289
parentb831ab16fb49ad56aa1091f1c820325a33832d53 (diff)
downloadmorph-88e0795b9ca7a6525049052bc4598db8380e7f85.tar.gz
morph-cache-server: Log errors as errors, not debug messages
-rwxr-xr-xmorph-cache-server16
1 files changed, 8 insertions, 8 deletions
diff --git a/morph-cache-server b/morph-cache-server
index 4af3cee3..c323bd93 100755
--- a/morph-cache-server
+++ b/morph-cache-server
@@ -176,7 +176,7 @@ class MorphCacheServer(cliapp.Application):
except Exception, e:
response.status = 500
- logging.debug('%s' % e)
+ logging.error('%s' % e)
@writable('/delete')
def delete():
@@ -189,7 +189,7 @@ class MorphCacheServer(cliapp.Application):
return { "status": ose.errno, "reason": ose.strerror }
except Exception, e:
response.status = 500
- logging.debug('%s' % e)
+ logging.error('%s' % e)
@app.get('/sha1s')
def sha1():
@@ -206,7 +206,7 @@ class MorphCacheServer(cliapp.Application):
}
except Exception, e:
response.status = 404
- logging.debug('%s' % e)
+ logging.error('%s' % e)
@app.post('/sha1s')
def sha1s():
@@ -223,7 +223,7 @@ class MorphCacheServer(cliapp.Application):
'tree': '%s' % tree
})
except Exception, e:
- logging.debug('%s' % e)
+ logging.error('%s' % e)
result.append({
'repo': '%s' % repo,
'ref': '%s' % ref,
@@ -244,7 +244,7 @@ class MorphCacheServer(cliapp.Application):
return content
except Exception, e:
response.status = 404
- logging.debug('%s' % e)
+ logging.error('%s' % e)
@app.post('/files')
def files():
@@ -262,7 +262,7 @@ class MorphCacheServer(cliapp.Application):
'data': '%s' % base64.b64encode(content),
})
except Exception, e:
- logging.debug('%s' % e)
+ logging.error('%s' % e)
result.append({
'repo': '%s' % repo,
'ref': '%s' % ref,
@@ -286,7 +286,7 @@ class MorphCacheServer(cliapp.Application):
}
except Exception, e:
response.status = 404
- logging.debug('%s' % e)
+ logging.error('%s' % e)
@app.get('/bundles')
def bundle():
@@ -306,7 +306,7 @@ class MorphCacheServer(cliapp.Application):
download=True)
else:
response.status = 404
- logging.debug('artifact %s does not exist' % basename)
+ logging.error('artifact %s does not exist' % basename)
@app.post('/artifacts')
def post_artifacts():