Explorar o código

log errors when copying files from cache

Brian Gough %!s(int64=11) %!d(string=hai) anos
pai
achega
56b77c300c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      services/clsi/app/coffee/UrlCache.coffee

+ 2 - 0
services/clsi/app/coffee/UrlCache.coffee

@@ -62,6 +62,8 @@ module.exports = UrlCache =
 
 	_copyFile: (from, to, _callback = (error) ->) ->
 		callbackOnce = (error) ->
+			if error?
+				logger.error err: error, from:from, to:to, "error copying file from cache"
 			_callback(error)
 			_callback = () ->
 		writeStream = fs.createWriteStream(to)