I'm working on a Hubot adapter for my corporate chat system. The output of the following code is quite surprising, I'm not sure where to go next. There is no runtime error (as far as I can tell)
Output:
connect console
DEBUG connect logger
posted console
Code:
connect: ->
console.log 'connect console'
@logger.debug 'connect logger'
@jsonClient.post 'Route/WebService/Json/Login', loginRequest, (err, res, body) ->
console.log 'posted console'
@logger.debug 'posted logger'