Skip to content

Commit

Permalink
Replace console messages with util debug function (#10)
Browse files Browse the repository at this point in the history
* Update CyclicSessionStore.js

#8

* Update CyclicSessionStore.js

Replace console messages with the debug util
  • Loading branch information
thisjt authored Aug 8, 2023
1 parent f1c0519 commit 7c0a50f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/CyclicSessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CyclicSessionStore extends Store {
this.attributeDefinitions.push({ AttributeName: this.sortKey, AttributeType: 'S' })
}

console.error(this)
debug('optionsToInstance dump', this);
}


Expand Down Expand Up @@ -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,
Expand All @@ -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))

Expand Down

0 comments on commit 7c0a50f

Please sign in to comment.