Skip to content

Commit

Permalink
removing plenty of log messages on live talk
Browse files Browse the repository at this point in the history
  • Loading branch information
branch14 committed Mar 31, 2015
1 parent fd175ed commit 2b152fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ messagingFunc = ($log, $q, config) ->
client.subscribe(channel, callback)

commitSub = ->
$log.error 'commitSub!'
promiseSub = promiseSub.then ->
$log.debug 'Subscriptions done, allow for publishing...'
deferredPub.resolve true
Expand Down
12 changes: 5 additions & 7 deletions app/assets/javascripts/angular/services/session.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ sessionFunc = ($log, messaging, util, $rootScope, $timeout,
$log.error errorMessage
callbacks:
onenterstate: (event, from, to) ->
#debugger
$log.info ">> ONENTERSTATE #{event}: #{from} -> #{to}"
# $log.info ">> ONENTERSTATE #{event}: #{from} -> #{to}"
reportState(to)
true
# the following 4 callbacks need timeouts to escape from
Expand Down Expand Up @@ -120,7 +119,7 @@ sessionFunc = ($log, messaging, util, $rootScope, $timeout,
return if millisecs > 2147483647
$timeout startTalk, millisecs
onleaveHostOnAir: ->
$log.debug "Host leaving state HostOnAir..."
# $log.debug "Host leaving state HostOnAir..."
deactivateSafetynet()
blackbox.unpublish()
config.flags.onair = false
Expand Down Expand Up @@ -168,7 +167,7 @@ sessionFunc = ($log, messaging, util, $rootScope, $timeout,
# effects based on incoming state notifications as well as
# events. It will only handle messages targeted at it's own user.
egoMsgHandler = (method, data) ->
$log.debug "ego: #{method}"
# $log.debug "ego: #{method}"
switch method
when 'Registering', 'GuestRegistering', 'HostRegistering'
users[data.user.id] = data.user
Expand All @@ -182,7 +181,7 @@ sessionFunc = ($log, messaging, util, $rootScope, $timeout,

# the stateHandler handles the state notification from other users
stateHandler = (state, data) ->
$log.debug "user #{data.user.id}: #{state}"
# $log.debug "user #{data.user.id}: #{state}"
users[data.user.id] ||= {}
switch state
when 'Registering', 'GuestRegistering', 'HostRegistering'
Expand All @@ -200,7 +199,7 @@ sessionFunc = ($log, messaging, util, $rootScope, $timeout,

# the eventHandler handles events (as opposed to states)
eventHandler = (event, data) ->
$log.debug "event: #{event}"
# $log.debug "event: #{event}"
switch event
when 'Demote' # make it snappy!
users[data.user.id]?.state = 'Listening'
Expand All @@ -224,7 +223,6 @@ sessionFunc = ($log, messaging, util, $rootScope, $timeout,
config.talk.state = 'processing'
when 'Archive'
config.talk.state = 'archived'
$log.debug data.links
config.talk.links = data.links
when "StartProcessing"
config.progress = data.talk
Expand Down

0 comments on commit 2b152fd

Please sign in to comment.