From 12e57a97f5cbcb0dffa242c1adc29c83ad381e64 Mon Sep 17 00:00:00 2001 From: chiko Date: Wed, 29 Oct 2025 23:38:45 +0100 Subject: [PATCH] some minor fixes to the logging texts --- src/app.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.ts b/src/app.ts index 0ac2b5a..4685a8d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -40,10 +40,10 @@ async function events_update_db() { console.log("AllRelevantEvents.length: " + AllRelevantEvents.length ); const eventsToInsert: TEventEntityNew[] = []; for ( const ev of events_fetched ) { - console.log("loop ev: " + [ ev.uid, ev.title, ev.date_at ].join( ", " ) ); + console.log("loop ev " + ev.uid + " : " + [ ev.title, ev.date_at ].join( ", " ) ); const found = AllRelevantEvents.find(event => event.uid === ev.uid); if ( found ) { - console.log("loop ev found: " + [ found.uid, found.title, found.date_at ].join( ", " ) ); + console.log("loop ev " + ev.uid + " found: " + [ found.title, found.date_at ].join( ", " ) ); if ( found.title != ev.title || found.description != ev.description || @@ -56,12 +56,12 @@ async function events_update_db() { found.timezone != ev.timezone || found.link != ev.link ) { - console.log("loop ev different (changed): " + [ ev.uid, ev.title, ev.date_at ].join( ", " ) ); + console.log("loop ev " + ev.uid + " different (changed): " + [ ev.title, ev.date_at ].join( ", " ) ); const newEventToInsert: TEventEntityNew = {... ev, notification: "changed"}; eventsToInsert.push( newEventToInsert ); } } else { - console.log("loop ev added (new): " + [ ev.uid, ev.title, ev.date_at ].join( ", " ) ); + console.log("loop ev " + ev.uid + " added (new): " + [ ev.title, ev.date_at ].join( ", " ) ); const newEventToInsert: TEventEntityNew = {... ev, notification: "new"}; eventsToInsert.push( newEventToInsert ); }