Skip to content

Commit

Permalink
fix: improve logging for persisting information
Browse files Browse the repository at this point in the history
When persisting and restoring data logs do not name the number that is being used to show string length
  • Loading branch information
wtrocki authored May 13, 2019
1 parent 85fcfa3 commit 878b13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Persistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class Persistor<T> {

this.log.info(
typeof data === 'string'
? `Persisted cache of size ${data.length}`
? `Persisted cache of size ${data.length} characters`
: 'Persisted cache'
);
} catch (error) {
Expand All @@ -74,7 +74,7 @@ export default class Persistor<T> {

this.log.info(
typeof data === 'string'
? `Restored cache of size ${data.length}`
? `Restored cache of size ${data.length} characters`
: 'Restored cache'
);
} else {
Expand Down

0 comments on commit 878b13b

Please sign in to comment.