@@ -96,12 +96,12 @@ Module.register("calendar", {
9696 Log . info ( `Starting module: ${ this . name } ` ) ;
9797
9898 if ( this . config . colored ) {
99- Log . warn ( "Your are using the deprecated config values 'colored'. Please switch to 'coloredSymbol' & 'coloredText'!" ) ;
99+ Log . warn ( "[calendar] Your are using the deprecated config values 'colored'. Please switch to 'coloredSymbol' & 'coloredText'!" ) ;
100100 this . config . coloredText = true ;
101101 this . config . coloredSymbol = true ;
102102 }
103103 if ( this . config . coloredSymbolOnly ) {
104- Log . warn ( "Your are using the deprecated config values 'coloredSymbolOnly'. Please switch to 'coloredSymbol' & 'coloredText'!" ) ;
104+ Log . warn ( "[calendar] Your are using the deprecated config values 'coloredSymbolOnly'. Please switch to 'coloredSymbol' & 'coloredText'!" ) ;
105105 this . config . coloredText = false ;
106106 this . config . coloredSymbol = true ;
107107 }
@@ -143,7 +143,7 @@ Module.register("calendar", {
143143
144144 // we check user and password here for backwards compatibility with old configs
145145 if ( calendar . user && calendar . pass ) {
146- Log . warn ( "Deprecation warning: Please update your calendar authentication configuration." ) ;
146+ Log . warn ( "[calendar] Deprecation warning: Please update your calendar authentication configuration." ) ;
147147 Log . warn ( "https://docs.magicmirror.builders/modules/calendar.html#configuration-options" ) ;
148148 calendar . auth = {
149149 user : calendar . user ,
@@ -160,7 +160,7 @@ Module.register("calendar", {
160160
161161 // for backward compatibility titleReplace
162162 if ( typeof this . config . titleReplace !== "undefined" ) {
163- Log . warn ( "Deprecation warning: Please consider upgrading your calendar titleReplace configuration to customEvents." ) ;
163+ Log . warn ( "[calendar] Deprecation warning: Please consider upgrading your calendar titleReplace configuration to customEvents." ) ;
164164 for ( const [ titlesearchstr , titlereplacestr ] of Object . entries ( this . config . titleReplace ) ) {
165165 this . config . customEvents . push ( { keyword : ".*" , transform : { search : titlesearchstr , replace : titlereplacestr } } ) ;
166166 }
@@ -201,7 +201,7 @@ Module.register("calendar", {
201201 // set this calendar as displayed
202202 this . calendarDisplayer [ payload . url ] = true ;
203203 } else {
204- Log . debug ( "[Calendar ] DOM not updated waiting self update()" ) ;
204+ Log . debug ( "[calendar ] DOM not updated waiting self update()" ) ;
205205 }
206206 return ;
207207 }
@@ -461,10 +461,10 @@ Module.register("calendar", {
461461 if ( eventStartDateMoment . isSameOrAfter ( now ) || ( event . fullDayEvent && eventEndDateMoment . diff ( now , "days" ) === 0 ) ) {
462462 // Use relative time
463463 if ( ! this . config . hideTime && ! event . fullDayEvent ) {
464- Log . debug ( "event not hidden and not fullday" ) ;
464+ Log . debug ( "[calendar] event not hidden and not fullday" ) ;
465465 timeWrapper . innerHTML = `${ CalendarUtils . capFirst ( eventStartDateMoment . calendar ( null , { sameElse : this . config . dateFormat } ) ) } ` ;
466466 } else {
467- Log . debug ( "event full day or hidden" ) ;
467+ Log . debug ( "[calendar] event full day or hidden" ) ;
468468 timeWrapper . innerHTML = `${ CalendarUtils . capFirst (
469469 eventStartDateMoment . calendar ( null , {
470470 sameDay : this . config . showTimeToday ? "LT" : `[${ this . translate ( "TODAY" ) } ]` ,
@@ -491,9 +491,9 @@ Module.register("calendar", {
491491 timeWrapper . innerHTML = CalendarUtils . capFirst ( this . translate ( "DAYAFTERTOMORROW" ) ) ;
492492 }
493493 }
494- Log . info ( "event fullday" ) ;
494+ Log . info ( "[calendar] event fullday" ) ;
495495 } else if ( eventStartDateMoment . diff ( now , "h" ) < this . config . getRelative ) {
496- Log . info ( "not full day but within getrelative size" ) ;
496+ Log . info ( "[calendar] not full day but within getrelative size" ) ;
497497 // If event is within getRelative hours, display 'in xxx' time format or moment.fromNow()
498498 timeWrapper . innerHTML = `${ CalendarUtils . capFirst ( eventStartDateMoment . fromNow ( ) ) } ` ;
499499 }
@@ -680,14 +680,14 @@ Module.register("calendar", {
680680 by_url_calevents . sort ( function ( a , b ) {
681681 return a . startDate - b . startDate ;
682682 } ) ;
683- Log . debug ( `pushing ${ by_url_calevents . length } events to total with room for ${ remainingEntries } ` ) ;
683+ Log . debug ( `[calendar] pushing ${ by_url_calevents . length } events to total with room for ${ remainingEntries } ` ) ;
684684 events = events . concat ( by_url_calevents . slice ( 0 , remainingEntries ) ) ;
685- Log . debug ( `events for calendar=${ events . length } ` ) ;
685+ Log . debug ( `[calendar] events for calendar=${ events . length } ` ) ;
686686 } else {
687687 events = events . concat ( by_url_calevents ) ;
688688 }
689689 }
690- Log . info ( `sorting events count=${ events . length } ` ) ;
690+ Log . info ( `[calendar] sorting events count=${ events . length } ` ) ;
691691 events . sort ( function ( a , b ) {
692692 return a . startDate - b . startDate ;
693693 } ) ;
@@ -721,7 +721,7 @@ Module.register("calendar", {
721721 }
722722 events = newEvents ;
723723 }
724- Log . info ( `slicing events total maxcount=${ this . config . maximumEntries } ` ) ;
724+ Log . info ( `[calendar] slicing events total maxcount=${ this . config . maximumEntries } ` ) ;
725725 return events . slice ( 0 , this . config . maximumEntries ) ;
726726 } ,
727727
@@ -936,7 +936,7 @@ Module.register("calendar", {
936936 setTimeout (
937937 ( ) => {
938938 setInterval ( ( ) => {
939- Log . debug ( "[Calendar ] self update" ) ;
939+ Log . debug ( "[calendar ] self update" ) ;
940940 if ( this . config . updateOnFetch ) {
941941 this . updateDom ( 1 ) ;
942942 } else {
0 commit comments