     else
       ec2.describeInstances MaxResults: 500, (err, data) ->
         if err
-          console.log err, err.stack
+          robot.logger.error "Received error #{JSON.stringify err}"
+          robot.logger.error err.stack
         else
           instancesCache.data = data
           instancesCache.expiry = moment().add 5, 'seconds'

        if reportZero
          robot.messageRoom room, message
        else
          console.log "#{room}: #{message}"

  robot.respond /aws jobs/, (msg) ->
    listJobs msg.message.room

        if reportZero
          robot.messageRoom room, message
        else
          robot.logger.info "#{room}: #{message}"

  reportOnQuery = (room, query, duration, reportZero) ->
    reportZero = no if not reportZero?
