Minor change to console log messages
authorNick Downing <downing.nick@gmail.com>
Sat, 20 Oct 2018 13:58:48 +0000 (00:58 +1100)
committerNick Downing <downing.nick@gmail.com>
Sat, 20 Oct 2018 13:58:48 +0000 (00:58 +1100)
JSONCache.js

index 0b5976e..11714be 100644 (file)
@@ -13,7 +13,7 @@ let JSONCache = function(diag) {
 
 let load = (diag, key, default_value) => {
   if (diag)
-    console.log('parsing', key)
+    console.log('opening', key)
   let result = {dirty: false}
   result.done = (
     async () => {
@@ -52,7 +52,7 @@ let save = (diag, key, result, timeout) => {
     setTimeout(
       async () => {
         if (diag)
-          console.log('writing', key)
+          console.log('flushing', key)
         result.dirty = false
         let text = JSON.stringify(result.value) + '\n'
         try {