mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Server: Avoid logging automated resource deletions (#10157)
This commit is contained in:
parent
eecad1aefc
commit
9c3e751ebc
@ -27,6 +27,7 @@ import storageConnectionCheck from './utils/storageConnectionCheck';
|
||||
import { setLocale } from '@joplin/lib/locale';
|
||||
import initLib from '@joplin/lib/initLib';
|
||||
import checkAdminHandler from './middleware/checkAdminHandler';
|
||||
import ActionLogger from '@joplin/lib/utils/ActionLogger';
|
||||
|
||||
interface Argv {
|
||||
env?: Env;
|
||||
@ -232,6 +233,11 @@ async function main() {
|
||||
Logger.initializeGlobalLogger(globalLogger);
|
||||
initLib(globalLogger);
|
||||
|
||||
// Don't log deletions made by the @joplin/lib API -- ActionLogger is
|
||||
// designed for Joplin client use.
|
||||
ActionLogger.enabled = false;
|
||||
|
||||
|
||||
if (envFilePath) appLogger().info(`Env variables were loaded from: ${envFilePath}`);
|
||||
|
||||
const pidFile = argv.pidfile as string;
|
||||
|
Loading…
Reference in New Issue
Block a user