From 7c0a50f5aee29771c6cf0cdb806e52c59888e215 Mon Sep 17 00:00:00 2001 From: Joshua Tahanlangit Date: Tue, 8 Aug 2023 21:45:37 +0800 Subject: [PATCH] Replace console messages with util debug function (#10) * Update CyclicSessionStore.js https://github.com/cyclic-software/session-store/issues/8 * Update CyclicSessionStore.js Replace console messages with the debug util --- src/CyclicSessionStore.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/CyclicSessionStore.js b/src/CyclicSessionStore.js index afd9844..7faadbf 100644 --- a/src/CyclicSessionStore.js +++ b/src/CyclicSessionStore.js @@ -75,7 +75,7 @@ class CyclicSessionStore extends Store { this.attributeDefinitions.push({ AttributeName: this.sortKey, AttributeType: 'S' }) } - console.error(this) + debug('optionsToInstance dump', this); } @@ -105,10 +105,6 @@ class CyclicSessionStore extends Store { this.documentClient.send(new PutCommand(params)).then(callback) } catch (err) { - - console.error('sadfsadfasdf') - console.error(err) - debug('Error saving session', { sid, sess, @@ -134,7 +130,7 @@ class CyclicSessionStore extends Store { }, ConsistentRead: true } - console.log(params) + debug('dynamodb session params', params); const { Item: record } = await this.documentClient.send(new GetCommand(params))