From 9d322400874606da3c7986f62fc0c5f491c6a419 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Thu, 12 Jun 2008 12:00:19 -0700 Subject: [PATCH] Changed some of the debug() logging statements I added a few commits ago into trace() statemetns b/c they were drowning the log. --- services/sync/modules/async.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/services/sync/modules/async.js b/services/sync/modules/async.js index 2c4d7f38ee3..619de53e757 100644 --- a/services/sync/modules/async.js +++ b/services/sync/modules/async.js @@ -93,8 +93,7 @@ Generator.prototype = { get cb() { let caller = Components.stack.caller; this._outstandingCbs++; - this._log.debug(this.name + - ": self.cb generated at " + + this._log.trace(this.name + ": self.cb generated at " + caller.filename + ":" + caller.lineNumber); let self = this, cb = function(data) { self.cont(data); }; cb.parentGenerator = this; @@ -135,7 +134,7 @@ Generator.prototype = { _handleException: function AsyncGen__handleException(e) { if (e instanceof StopIteration) { - this._log.debug(this.name + ": End of coroutine reached."); + this._log.trace(this.name + ": End of coroutine reached."); // skip to calling done() } else if (this.onComplete.parentGenerator instanceof Generator) { @@ -190,7 +189,7 @@ Generator.prototype = { cont: function AsyncGen_cont(data) { this._outstandingCbs--; - this._log.debug(this.name + ": self.cb() called, resuming coroutine."); + this._log.trace(this.name + ": self.cb() called, resuming coroutine."); this._continued = true; try { this.generator.send(data); @@ -221,7 +220,7 @@ Generator.prototype = { return; let self = this; let cb = function() { self._done(retval); }; - this._log.debug(this.name + ": done() called."); + this._log.trace(this.name + ": done() called."); if (this._outstandingCbs > 0) this._log.warn("Async method '" + this.name + "' may have outstanding callbacks.");