From 050e026f8b610d54dfbb4ec53af06e7e3c212963 Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Thu, 19 Jul 2018 12:29:31 +0200 Subject: [PATCH] Improved debug logs in importer no issue --- core/server/data/importer/importers/data/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/server/data/importer/importers/data/index.js b/core/server/data/importer/importers/data/index.js index 74421b4050..44cf346cf6 100644 --- a/core/server/data/importer/importers/data/index.js +++ b/core/server/data/importer/importers/data/index.js @@ -2,6 +2,7 @@ var _ = require('lodash'), Promise = require('bluebird'), semver = require('semver'), common = require('../../../../lib/common'), + debug = require('ghost-ignition').debug('importer:data'), sequence = require('../../../../lib/promise/sequence'), models = require('../../../../models'), SubscribersImporter = require('./subscribers'), @@ -148,6 +149,7 @@ DataImporter = { return toReturn; }).catch(function (errors) { + debug(errors); return Promise.reject(errors); }).finally(() => { // release memory