« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js
index f82062f7..d5ac082f 100644
--- a/src/content/dependencies/index.js
+++ b/src/content/dependencies/index.js
@@ -156,6 +156,11 @@ export function watchContentDependencies({
         break main;
       }
 
+      if (logging && contentDependencies[functionName]) {
+        const timestamp = new Date().toLocaleString('en-US', {timeStyle: 'medium'});
+        console.log(color.green(`[${timestamp}] Updated ${functionName}`));
+      }
+
       contentDependencies[functionName] = fn;
 
       events.emit('update', functionName);