You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Server: Avoid logging automated resource deletions (#10157)
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user