 
     , (error) ->
       # TODO: Report to server.
-      if goog.DEBUG
-        console.log 'The read failed: ' + error.code
+      console.log 'The read failed: ' + error.code if goog.DEBUG
 
   ###*
     @param {Object} user Firebase user.

  onUserLogin: (user) ->
    @userRef = @userRefOf user
    @setUserLastOnlineOnDisconnect_()
    @listenServerChanges_ user

  ###*
    @private
  ###
  setUserLastOnlineOnDisconnect_: ->
    @userRef.child('user/lastOnline')
      .onDisconnect()
      .set window.Firebase.ServerValue.TIMESTAMP


    @param {Object} user Firebase user.
    @private
  ###
  fetchAndListenServerChanges_: (user) ->
    userJustLogged = true
    @userRef.on 'value', (snap) =>
      return if @isLocalChange_
      val = snap.val()

      serverUserExists = val?.user?.uid
