Skip to content

Commit 364999a

Browse files
committed
Fix log rotation
1 parent 4d553d5 commit 364999a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class Logger {
1919
await AccountStorage.changeEntry(
2020
'log',
2121
log => {
22-
return log.concat(this.messages).slice(-1000) // rotate log to max of 1000 entries
22+
return log.slice(-10).concat(this.messages) // only save the last sync run
2323
},
2424
[]
2525
)

0 commit comments

Comments
 (0)