mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
00552469b3
Summary: When multiple accounts are syncing, it's very hard to scan the local sync logs because it is unclear to which account the logs belong to, and it makes debugging hard. This commit makes it so that all logs from local-sync include the account info, with the account email prefixed at the beginning of each log line (this allows filtering), and color coded by account. Test Plan: manual Reviewers: mark, spang, khamidou, evan, halla Reviewed By: evan, halla Differential Revision: https://phab.nylas.com/D3851
16 lines
433 B
JavaScript
16 lines
433 B
JavaScript
/* eslint global-require: 0 */
|
|
import {ComponentRegistry} from 'nylas-exports'
|
|
import {createLogger} from './src/shared/logger'
|
|
|
|
export function activate() {
|
|
global.Logger = createLogger()
|
|
require('./src/local-api');
|
|
require('./src/local-sync-worker');
|
|
|
|
const Root = require('./src/local-sync-dashboard/root').default;
|
|
ComponentRegistry.register(Root, {role: 'Developer:LocalSyncUI'});
|
|
}
|
|
|
|
export function deactivate() {
|
|
|
|
}
|