mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	remove extra logging
This commit is contained in:
		
							
								
								
									
										36
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										36
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -3578,9 +3578,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "electron-to-chromium": { | ||||
|       "version": "1.3.851", | ||||
|       "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.851.tgz", | ||||
|       "integrity": "sha512-Ak970eGtRSoHTaJkoDjdkeXYetbwm5Bl9pN/nPOQ3QzLfw1EWRjReOlWUra6o58SVgxfpwOT9U2P1BUXoJ57dw==", | ||||
|       "version": "1.3.854", | ||||
|       "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.854.tgz", | ||||
|       "integrity": "sha512-00/IIC1mFPkq32MhUJyLdcTp7+wsKK2G3Sb65GSas9FKJQGYkDcZ4GwJkkxf5YyM3ETvl6n+toV8OmtXl4IA/g==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "electron-window-state": { | ||||
| @@ -3684,9 +3684,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "es-module-lexer": { | ||||
|       "version": "0.9.0", | ||||
|       "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.0.tgz", | ||||
|       "integrity": "sha512-qU2eN/XHsrl3E4y7mK1wdWnyy5c8gXtCbfP6Xcsemm7fPUR1PIV1JhZfP7ojcN0Fzp69CfrS3u76h2tusvfKiQ==", | ||||
|       "version": "0.9.1", | ||||
|       "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.1.tgz", | ||||
|       "integrity": "sha512-17Ed9misDnpyNBJh63g1OhW3qUFecDgGOivI85JeZY/LGhDum8e+cltukbkSK8pcJnXXEkya56sp4vSS1nzoUw==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "es6-error": { | ||||
| @@ -4988,9 +4988,9 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "jest-worker": { | ||||
|       "version": "27.2.2", | ||||
|       "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.2.tgz", | ||||
|       "integrity": "sha512-aG1xq9KgWB2CPC8YdMIlI8uZgga2LFNcGbHJxO8ctfXAydSaThR4EewKQGg3tBOC+kS3vhPGgymsBdi9VINjPw==", | ||||
|       "version": "27.2.4", | ||||
|       "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.4.tgz", | ||||
|       "integrity": "sha512-Zq9A2Pw59KkVjBBKD1i3iE2e22oSjXhUKKuAK1HGX8flGwkm6NMozyEYzKd41hXc64dbd/0eWFeEEuxqXyhM+g==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "@types/node": "*", | ||||
| @@ -5461,18 +5461,18 @@ | ||||
|       } | ||||
|     }, | ||||
|     "lorem-ipsum": { | ||||
|       "version": "2.0.3", | ||||
|       "resolved": "https://registry.npmjs.org/lorem-ipsum/-/lorem-ipsum-2.0.3.tgz", | ||||
|       "integrity": "sha512-CX2r84DMWjW/DWiuzicTI9aRaJPAw2cvAGMJYZh/nx12OkTGqloj8y8FU0S8ZkKwOdqhfxEA6Ly8CW2P6Yxjwg==", | ||||
|       "version": "2.0.4", | ||||
|       "resolved": "https://registry.npmjs.org/lorem-ipsum/-/lorem-ipsum-2.0.4.tgz", | ||||
|       "integrity": "sha512-TD+ERYfxjYiUfOyaKU6OH4euumNVeKoo3BxIhokb7bGmoCULsME48onF9NVxYK3CU1z9L5ALnkDkW8lIkHvMNQ==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "commander": "^2.17.1" | ||||
|       }, | ||||
|       "dependencies": { | ||||
|         "commander": { | ||||
|           "version": "2.20.1", | ||||
|           "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.1.tgz", | ||||
|           "integrity": "sha512-cCuLsMhJeWQ/ZpsFTbE765kvVfoeSddc4nU3up4fV+fDBcfUXnbITJ+JzhkdjzOqhURjZgujxaioam4RM9yGUg==", | ||||
|           "version": "2.20.3", | ||||
|           "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", | ||||
|           "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", | ||||
|           "dev": true | ||||
|         } | ||||
|       } | ||||
| @@ -8091,9 +8091,9 @@ | ||||
|       "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==" | ||||
|     }, | ||||
|     "webpack": { | ||||
|       "version": "5.54.0", | ||||
|       "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.54.0.tgz", | ||||
|       "integrity": "sha512-MAVKJMsIUotOQKzFOmN8ZkmMlj7BOyjDU6t1lomW9dWOme5WTStzGa3HMLdV1KYD1AiFETGsznL4LMSvj4tukw==", | ||||
|       "version": "5.55.1", | ||||
|       "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.55.1.tgz", | ||||
|       "integrity": "sha512-EYp9lwaOOAs+AA/KviNZ7bQiITHm4bXQvyTPewD2+f5YGjv6sfiClm40yeX5FgBMxh5bxcB6LryiFoP09B97Ug==", | ||||
|       "dev": true, | ||||
|       "requires": { | ||||
|         "@types/eslint-scope": "^3.7.0", | ||||
|   | ||||
| @@ -88,9 +88,9 @@ | ||||
|     "esm": "3.2.25", | ||||
|     "jasmine": "3.9.0", | ||||
|     "jsdoc": "3.6.7", | ||||
|     "lorem-ipsum": "2.0.3", | ||||
|     "lorem-ipsum": "2.0.4", | ||||
|     "rcedit": "3.0.1", | ||||
|     "webpack": "5.54.0", | ||||
|     "webpack": "5.55.1", | ||||
|     "webpack-cli": "4.8.0" | ||||
|   }, | ||||
|   "optionalDependencies": { | ||||
|   | ||||
| @@ -32,8 +32,6 @@ async function createNote(parentNotePath, options = {}) { | ||||
|  | ||||
|     const parentNoteId = treeService.getNoteIdFromNotePath(parentNotePath); | ||||
|  | ||||
|     console.log(options); | ||||
|  | ||||
|     if (options.type === 'mermaid' && !options.content) { | ||||
|         options.content = `graph TD; | ||||
|     A-->B; | ||||
|   | ||||
| @@ -624,8 +624,10 @@ class ConsistencyChecks { | ||||
|  | ||||
|             ws.sendMessageToAllClients({type: 'consistency-checks-failed'}); | ||||
|         } else { | ||||
|             log.info(`All consistency checks passed (took ${elapsedTimeMs}ms)` + | ||||
|                 (this.fixedIssues ? " after some fixes" : "with no errors detected")); | ||||
|             log.info(`All consistency checks passed ` + | ||||
|                 (this.fixedIssues ? "after some fixes" : "with no errors detected") + | ||||
|                 ` (took ${elapsedTimeMs}ms)` | ||||
|             ); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -666,7 +668,7 @@ sqlInit.dbReady.then(() => { | ||||
|     setInterval(cls.wrap(runPeriodicChecks), 60 * 60 * 1000); | ||||
|  | ||||
|     // kickoff checks soon after startup (to not block the initial load) | ||||
|     setTimeout(cls.wrap(runPeriodicChecks), 20 * 1000); | ||||
|     setTimeout(cls.wrap(runPeriodicChecks), 10 * 1000); | ||||
| }); | ||||
|  | ||||
| module.exports = { | ||||
|   | ||||
| @@ -115,8 +115,6 @@ function createNewNote(params) { | ||||
|             mime: deriveMime(params.type, params.mime) | ||||
|         }).save(); | ||||
|  | ||||
|         console.log(params); | ||||
|  | ||||
|         note.setContent(params.content); | ||||
|  | ||||
|         const branch = new Branch({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user