| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Module to support logging debug messages. | 7 * Module to support logging debug messages. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 remoting.DebugLog.prototype.logIq = function(send, message) { | 791 remoting.DebugLog.prototype.logIq = function(send, message) { |
| 792 if (!this.prettyIq(send, message)) { | 792 if (!this.prettyIq(send, message)) { |
| 793 // Fall back to showing the raw stanza. | 793 // Fall back to showing the raw stanza. |
| 794 var prefix = (send ? 'Sending Iq: ' : 'Receiving Iq: '); | 794 var prefix = (send ? 'Sending Iq: ' : 'Receiving Iq: '); |
| 795 this.log(prefix + message); | 795 this.log(prefix + message); |
| 796 } | 796 } |
| 797 }; | 797 }; |
| 798 | 798 |
| 799 /** @type {remoting.DebugLog} */ | 799 /** @type {remoting.DebugLog} */ |
| 800 remoting.debug = null; | 800 remoting.debug = null; |
| OLD | NEW |