فهرست منبع

log errors when copying files from cache

Brian Gough 11 سال پیش
والد
کامیت
56b77c300c
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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)