public
/
json_cache_rw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c01ad
)
Minor change to console log messages
author
Nick Downing
<downing.nick@gmail.com>
Sat, 20 Oct 2018 13:58:48 +0000
(
00:58
+1100)
committer
Nick Downing
<downing.nick@gmail.com>
Sat, 20 Oct 2018 13:58:48 +0000
(
00:58
+1100)
JSONCache.js
patch
|
blob
|
history
diff --git
a/JSONCache.js
b/JSONCache.js
index
0b5976e
..
11714be
100644
(file)
--- a/
JSONCache.js
+++ b/
JSONCache.js
@@
-13,7
+13,7
@@
let JSONCache = function(diag) {
let load = (diag, key, default_value) => {
if (diag)
- console.log('
pars
ing', key)
+ console.log('
open
ing', key)
let result = {dirty: false}
result.done = (
async () => {
@@
-52,7
+52,7
@@
let save = (diag, key, result, timeout) => {
setTimeout(
async () => {
if (diag)
- console.log('
writ
ing', key)
+ console.log('
flush
ing', key)
result.dirty = false
let text = JSON.stringify(result.value) + '\n'
try {