log messages now contain script context if available

This commit is contained in:
zadam
2022-02-01 22:25:38 +01:00
parent 6833959f3b
commit 0917fc8be1
4 changed files with 13 additions and 1 deletions

View File

@@ -293,7 +293,7 @@ function BackendScriptApi(currentNote, apiParams) {
*
* @param message
*/
this.log = message => log.info(`Script "${currentNote.title}" (${currentNote.noteId}): ${message}`);
this.log = message => log.info(message);
/**
* Returns root note of the calendar.