Skip to content

Commit

Permalink
Add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
spakanati committed Oct 25, 2016
1 parent 4a1d987 commit 87825b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workers/number-assigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function assignUserNumbers() {
} else {
service = ACTIVE_SMS_SERVICE
}
log.info(`Choosing service ${service} for message ID ${message.id}`)

const assignment = await r.table('assignment')
.get(message.assignment_id)
Expand All @@ -49,6 +50,7 @@ async function assignUserNumbers() {
.default(null)

if (!userCell) {
log.info(`Renting new cell for user ID ${userId} from service: ${service}`)
const newCell = await serviceMap[service].rentNewCell()

userCell = new UserCell({
Expand Down

0 comments on commit 87825b5

Please sign in to comment.