mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed mobile build
This commit is contained in:
parent
176d3286cd
commit
21a7149493
@ -43,6 +43,7 @@ import noteListControlsCommands from './gui/NoteListControls/commands/index';
|
|||||||
import sidebarCommands from './gui/Sidebar/commands/index';
|
import sidebarCommands from './gui/Sidebar/commands/index';
|
||||||
import appCommands from './commands/index';
|
import appCommands from './commands/index';
|
||||||
import libCommands from '@joplin/lib/commands/index';
|
import libCommands from '@joplin/lib/commands/index';
|
||||||
|
import { homedir } from 'os';
|
||||||
const electronContextMenu = require('./services/electron-context-menu');
|
const electronContextMenu = require('./services/electron-context-menu');
|
||||||
// import populateDatabase from '@joplin/lib/services/debug/populateDatabase';
|
// import populateDatabase from '@joplin/lib/services/debug/populateDatabase';
|
||||||
|
|
||||||
@ -361,6 +362,9 @@ class Application extends BaseApplication {
|
|||||||
syncDebugLog.enabled = false;
|
syncDebugLog.enabled = false;
|
||||||
|
|
||||||
if (dir.endsWith('dev-desktop-2')) {
|
if (dir.endsWith('dev-desktop-2')) {
|
||||||
|
syncDebugLog.addTarget(TargetType.File, {
|
||||||
|
path: `${homedir()}/synclog.txt`,
|
||||||
|
});
|
||||||
syncDebugLog.enabled = true;
|
syncDebugLog.enabled = true;
|
||||||
syncDebugLog.info(`Profile dir: ${dir}`);
|
syncDebugLog.info(`Profile dir: ${dir}`);
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,8 @@
|
|||||||
// related events. In particular, it logs notes and folders being saved, and the
|
// related events. In particular, it logs notes and folders being saved, and the
|
||||||
// relevant sync operations. Enable it in app.ts
|
// relevant sync operations. Enable it in app.ts
|
||||||
|
|
||||||
import Logger, { TargetType } from '../../Logger';
|
import Logger from '../../Logger';
|
||||||
import { homedir } from 'os';
|
|
||||||
|
|
||||||
const syncDebugLog = new Logger();
|
const syncDebugLog = new Logger();
|
||||||
syncDebugLog.addTarget(TargetType.File, {
|
|
||||||
path: `${homedir()}/synclog.txt`,
|
|
||||||
});
|
|
||||||
|
|
||||||
export default syncDebugLog;
|
export default syncDebugLog;
|
||||||
|
Loading…
Reference in New Issue
Block a user