Only display read error in verbose mode
This commit is contained in:
parent
b503d59c49
commit
ef4a4acbc0
1 changed files with 2 additions and 1 deletions
|
@ -229,7 +229,8 @@ class FileRequest(object):
|
|||
self.log.debug("GetFile %s %s request error: %s" % (self.connection, params["inner_path"], Debug.formatException(err)))
|
||||
self.response({"error": "File read error: %s" % err})
|
||||
except Exception, err:
|
||||
self.log.debug("GetFile read error: %s" % Debug.formatException(err))
|
||||
if config.verbose:
|
||||
self.log.debug("GetFile read error: %s" % Debug.formatException(err))
|
||||
self.response({"error": "File read error"})
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue