mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Improved debug logs in importer
no issue
This commit is contained in:
parent
ad1e9ab038
commit
050e026f8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user