Explorar el Código

log errors when copying files from cache

Brian Gough hace 11 años
padre
commit
56b77c300c
Se han modificado 1 ficheros con 2 adiciones y 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)