Skip to content

Commit

Permalink
Merge pull request #71 from su-chang/log
Browse files Browse the repository at this point in the history
Modify log verbose.
  • Loading branch information
huan authored Feb 10, 2020
2 parents e6d89a0 + d75a7c9 commit 5ea7c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flash-store",
"version": "0.18.15",
"version": "0.18.16",
"description": "FlashStore is a Key-Value persistent storage with easy to use ES6 Map-like API(both Async and Sync support), powered by LevelDB and TypeScript.",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/flash-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class FlashStore<K = string, V = any> implements AsyncMap<K, V> {
* await flashStore.set(1, 1)
*/
public async set (key: K, value: V): Promise<void> {
log.verbose('FlashStore', 'set(%s, %s) value type: %s', key, value, typeof value)
log.verbose('FlashStore', 'set(%s, %s) value type: %s', key, JSON.stringify(value), typeof value)
await this.levelDb.put(key, JSON.stringify(value))
}

Expand Down

0 comments on commit 5ea7c3d

Please sign in to comment.