Moved core/server/lib/common/logging to core/shared/logging (#11857)

- Represents that logging is shared across all parts of Ghost at present
  * moved core/server/lib/common/logging to core/shared/logging
  * updated logging path for generic imports
  * updated migration and schema imports of logging
  * updated tests and index logging import
  * 🔥 removed logging from common module
  * fixed tests
This commit is contained in:
Vikas Potluri 2020-05-28 13:30:23 -05:00 committed by GitHub
parent 9b9f8462e7
commit 00c324fa4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
139 changed files with 177 additions and 153 deletions

View File

@ -1,5 +1,6 @@
const {i18n} = require('../../../server/lib/common');
const urlUtils = require('../../../shared/url-utils');
const {logging, i18n} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const middleware = require('./lib/middleware');
const router = require('./lib/router');

View File

@ -1,7 +1,7 @@
const Promise = require('bluebird');
const settingsCache = require('../../server/services/settings/cache');
const urlUtils = require('../../shared/url-utils');
const {logging} = require('../../server/lib/common');
const logging = require('../../shared/logging');
const getUrl = require('./url');
const getImageDimensions = require('./image-dimensions');
const getCanonicalUrl = require('./canonical_url');

View File

@ -1,6 +1,7 @@
const debug = require('ghost-ignition').debug('services:apps');
const Promise = require('bluebird');
const {logging, i18n} = require('../../../server/lib/common');
const {i18n} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const config = require('../../../shared/config');
const loader = require('./loader');

View File

@ -4,7 +4,8 @@
const hbs = require('./themes/engine');
const errors = require('@tryghost/errors');
const {i18n, logging} = require('../../server/lib/common');
const {i18n} = require('../../server/lib/common');
const logging = require('../../shared/logging');
const settingsCache = require('../../server/services/settings/cache');
const config = require('../../shared/config');

View File

@ -1,4 +1,5 @@
const {events, logging, i18n} = require('../../../server/lib/common');
const {events, i18n} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const active = require('./active');

View File

@ -2,7 +2,7 @@ const Promise = require('bluebird');
const errors = require('@tryghost/errors');
const hbs = require('../engine');
const config = require('../../../../shared/config');
const {logging} = require('../../../../server/lib/common');
const logging = require('../../../../shared/logging');
// Register an async handlebars helper for a given handlebars instance
function asyncHelperWrapper(hbs, name, fn) {

View File

@ -1,5 +1,6 @@
const errors = require('@tryghost/errors');
const {i18n, events, logging} = require('../../../server/lib/common');
const {i18n, events} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const settingsCache = require('../../../server/services/settings/cache');
const config = require('../../../shared/config');

View File

@ -1,6 +1,7 @@
const _ = require('lodash');
const debug = require('ghost-ignition').debug('themes');
const {events, i18n: commonI18n, logging} = require('../../../server/lib/common');
const {events, i18n: commonI18n} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const themeLoader = require('./loader');
const active = require('./active');

View File

@ -8,7 +8,8 @@ const themeLoader = require('./loader');
const toJSON = require('./to-json');
const settingsCache = require('../../../server/services/settings/cache');
const {i18n, logging} = require('../../../server/lib/common');
const {i18n} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const debug = require('ghost-ignition').debug('api:themes');

View File

@ -1,7 +1,7 @@
const debug = require('ghost-ignition').debug('services:url:queue');
const EventEmitter = require('events').EventEmitter;
const _ = require('lodash');
const {logging} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
/**

View File

@ -1,5 +1,5 @@
const EventEmitter = require('events').EventEmitter;
const {logging} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
/**

View File

@ -1,7 +1,8 @@
const _ = require('lodash');
const debug = require('ghost-ignition').debug('services:url:urls');
const {events} = require('../../../server/lib/common');
const urlUtils = require('../../../shared/url-utils');
const {logging, events} = require('../../../server/lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
/**

View File

@ -2,7 +2,7 @@ const util = require('util');
const moment = require('moment');
const debug = require('ghost-ignition').debug('scheduling-default');
const SchedulingBase = require('./SchedulingBase');
const {logging} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const request = require('../../lib/request');

View File

@ -7,7 +7,8 @@ const path = require('path');
const Promise = require('bluebird');
const moment = require('moment');
const config = require('../../../shared/config');
const {logging, i18n} = require('../../lib/common');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const constants = require('../../lib/constants');
const urlUtils = require('../../../shared/url-utils');

View File

@ -1,5 +1,6 @@
const Promise = require('bluebird');
const {i18n, logging} = require('../../lib/common');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const security = require('../../lib/security');
const mailService = require('../../services/mail');

View File

@ -7,7 +7,8 @@ const config = require('../../../shared/config');
const models = require('../../models');
const membersService = require('../../services/members');
const settingsCache = require('../../services/settings/cache');
const {i18n, logging} = require('../../lib/common');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const fsLib = require('../../lib/fs');
const db = require('../../data/db');
const _ = require('lodash');

View File

@ -1,5 +1,6 @@
const Promise = require('bluebird');
const {i18n, logging} = require('../../lib/common');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const security = require('../../lib/security');
const mailService = require('../../services/mail');

View File

@ -5,7 +5,7 @@ const fs = require('fs-extra');
const path = require('path');
const Promise = require('bluebird');
const config = require('../../../shared/config');
const {logging} = require('../../lib/common');
const logging = require('../../../shared/logging');
const urlUtils = require('../../../shared/url-utils');
const exporter = require('../exporter');
let writeExportFile;

View File

@ -1,6 +1,6 @@
const knex = require('knex');
const config = require('../../../shared/config');
const {logging} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
let knexInstance;

View File

@ -3,7 +3,8 @@ const Promise = require('bluebird');
const db = require('../../data/db');
const commands = require('../schema').commands;
const ghostVersion = require('../../lib/ghost-version');
const {logging, i18n} = require('../../lib/common');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const security = require('../../lib/security');
const models = require('../../models');

View File

@ -8,7 +8,8 @@ const uuid = require('uuid');
const {extract} = require('@tryghost/zip');
const sequence = require('../../lib/promise/sequence');
const pipeline = require('../../lib/promise/pipeline');
const {logging, i18n} = require('../../lib/common');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = require('@tryghost/errors');
const ImageHandler = require('./handlers/image');
const JSONHandler = require('./handlers/json');

View File

@ -1,7 +1,7 @@
const Promise = require('bluebird');
const commands = require('../../schema').commands;
const schema = require('../../schema').tables;
const {logging} = require('../../../lib/common');
const logging = require('../../../../shared/logging');
const schemaTables = Object.keys(schema);
module.exports.up = function createTables(options) {

View File

@ -1,7 +1,7 @@
const Promise = require('bluebird');
const _ = require('lodash');
const fixtures = require('../../schema/fixtures');
const {logging} = require('../../../lib/common');
const logging = require('../../../../shared/logging');
module.exports.config = {
transaction: true

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts';
const columns = ['custom_template'];

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resource = 'theme';
const _private = {};

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'webhooks';
const message1 = 'Adding table: ' + table;

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resource = 'webhook';
const _private = {};

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const models = require('../../../../models');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports.config = {
transaction: true

View File

@ -2,7 +2,7 @@ const merge = require('lodash/merge');
const utils = require('../../../schema/fixtures/utils');
const models = require('../../../../models');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const _private = {};
_private.addRole = function addRole(options) {

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts_authors';
const message1 = 'Adding table: ' + table;

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const Promise = require('bluebird');
const ObjectId = require('bson-objectid');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const models = require('../../../../models');
module.exports.config = {

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const mobiledocLib = require('../../../../lib/mobiledoc');
const models = require('../../../../models');
const message1 = 'Migrating Koenig beta post\'s mobiledoc/HTML to 2.0 format';

View File

@ -1,5 +1,5 @@
const _ = require('lodash');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const models = require('../../../../models');
const fixtures = require('../../../../data/schema/fixtures');
const message1 = 'Adding demo post.';

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts';
const columns = ['custom_excerpt'];

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts';
const columns = ['codeinjection_head', 'codeinjection_foot'];

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts';
const columns = ['og_image', 'og_title', 'og_description', 'twitter_image', 'twitter_title', 'twitter_description'];

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resource = 'redirect';
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const table = 'posts';
const columnNameOld = 'amp';
const columnNameNew = 'comment_id';

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const mobiledocLib = require('../../../../lib/mobiledoc');
const message1 = 'Updating posts: apply new editor format and set comment_id field.';
const message2 = 'Updated posts: apply new editor format and set comment_id field.';

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const models = require('../../../../models');
const message1 = 'Removing `koenigEditor` from labs.';
const message2 = 'Removed `koenigEditor` from labs.';

View File

@ -1,7 +1,7 @@
const path = require('path');
const fs = require('fs-extra');
const config = require('../../../../../shared/config');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const models = require('../../../../models');
const message1 = 'Removing `globals.permalinks` from routes.yaml.';
const message2 = 'Removed `globals.permalinks` from routes.yaml.';

View File

@ -1,5 +1,5 @@
const _ = require('lodash');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const message1 = 'Removing demo post.';
const message2 = 'Removed demo post.';
const message3 = 'Rollback: Bring back demo post.';

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'actions';
const message1 = `Adding table: ${table}`;

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resource = 'action';
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'integrations';
const newColumnNames = [

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const merge = require('lodash/merge');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports.config = {
transaction: true

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts';
const columns = ['canonical_url'];

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const settingsCache = require('../../../../services/settings/cache');
const config = require('../../../../../shared/config');
const moment = require('moment');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'sessions';
const message1 = 'Adding table: ' + table;

View File

@ -1,5 +1,5 @@
const commands = require('../../../schema').commands;
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const tables = ['integrations', 'api_keys'];
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const merge = require('lodash/merge');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['integration', 'api_key'];
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'mobiledoc_revisions';
const message1 = 'Adding table: ' + table;

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['notification'];

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resource = 'member';
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const merge = require('lodash/merge');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const merge = require('lodash/merge');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const config = require('../../../../../shared/config');
const {URL} = require('url');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const utils = require('../../../schema/fixtures/utils');
const relationFixtures = {

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const merge = require('lodash/merge');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const merge = require('lodash/merge');
const models = require('../../../../models');
const utils = require('../../../schema/fixtures/utils');

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const utils = require('../../../schema/fixtures/utils');
const relationFixtures = {

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,5 +1,5 @@
const toPairs = require('lodash/toPairs');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
/*
* @param from: object with a SINGLE entry { 'fromColumn': 'fromValue' }

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'webhooks';
const newColumnNames = [

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['webhook'];
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema/commands');
module.exports = {

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema/commands');
module.exports = {

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports.config = {
transaction: true

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['webhook'];
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'members';
const message1 = 'Adding table: ' + table;

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const tables = [

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const tables = [

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'posts_meta';
const message1 = `Adding table: ${table}`;

View File

@ -2,7 +2,7 @@ const postsMetaSchema = require('../../../schema').tables.posts_meta;
const ObjectId = require('bson-objectid');
const _ = require('lodash');
const models = require('../../../../models');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports.config = {
transaction: true

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,6 +1,6 @@
const Promise = require('bluebird');
const toPairs = require('lodash/toPairs');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
/*
* @param from: object with a SINGLE entry { 'fromColumn': 'fromValue' }

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const schema = require('../../../schema');
/*

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const Promise = require('bluebird');
const htmlToText = require('html-to-text');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const mobiledocLib = require('../../../../lib/mobiledoc');
module.exports.config = {

View File

@ -1,6 +1,6 @@
const ObjectId = require('bson-objectid');
const _ = require('lodash');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports.config = {
transaction: true,

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const tables = [

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports = {
async up({connection}) {

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['email_preview'];
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'emails';
const message1 = 'Adding table: ' + table;

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['email'];
const _private = {};

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const createLog = type => msg => logging[type](msg);

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const uuid = require('uuid');
module.exports = {

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['email'];
const _private = {};

View File

@ -1,6 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const debug = require('ghost-ignition').debug('migrations');
module.exports.config = {

View File

@ -1,5 +1,5 @@
const ObjectId = require('bson-objectid');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
module.exports.config = {
transaction: true

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const debug = require('ghost-ignition').debug('migrations');
module.exports.config = {

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'labels';
const message1 = 'Adding table: ' + table;

View File

@ -1,4 +1,4 @@
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'members_labels';
const message1 = 'Adding table: ' + table;

View File

@ -1,7 +1,7 @@
const _ = require('lodash');
const utils = require('../../../schema/fixtures/utils');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const logging = require('../../../../../shared/logging');
const resources = ['label'];
const _private = {};

Some files were not shown because too many files have changed in this diff Show More