]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - lib/videos.js
Error handling mini refractoring
[github/Chocobozzz/PeerTube.git] / lib / videos.js
index 5d23070a7dcbcdedcc37ede38fa43b6f025cae95..0da7715c413348216f0b00dab792584a03310b14 100644 (file)
   function seedAllExisting (callback) {
     Videos.listOwned(function (err, videos_list) {
       if (err) {
-        logger.error('Cannot get list of the videos to seed.', { error: err })
+        logger.error('Cannot get list of the videos to seed.')
         return callback(err)
       }
 
       async.each(videos_list, function (video, each_callback) {
         seed(uploadDir + video.namePath, function (err) {
           if (err) {
-            logger.error('Cannot seed this video.', { error: err })
+            logger.error('Cannot seed this video.')
             return callback(err)
           }