mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
remove extra logging
This commit is contained in:
@@ -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