Skip to content

Commit

Permalink
* Bump up dns-srv dep to 0.2.1
Browse files Browse the repository at this point in the history
* Bump up version to 0.7.4
* Move some undeserving log.info() statements to log.debug()
  • Loading branch information
dhruvbird committed May 18, 2013
1 parent 6af0e1d commit be255e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-xmpp-bosh",
"version": "0.7.3",
"version": "0.7.4",
"main": "./src/main",
"bin": {
"bosh-server": "./run-server.js"
Expand All @@ -14,7 +14,7 @@
"tav": "~0.1.0",
"underscore": "~1.3.3",
"eventpipe": "~0.0.5",
"dns-srv": "0.2.0",
"dns-srv": "0.2.1",
"semver": "~1.0.8",
"ws": "= 0.4.19",
"node-lumberjack": "= 0.0.4",
Expand Down
4 changes: 2 additions & 2 deletions src/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Session.prototype = {

// Check for stream terminate
if (helper.is_stream_terminate_request(node)) {
log.info("%s Stream Terminate Request", this.sid);
log.debug("%s Stream Terminate Request", this.sid);
// We may be required to terminate one stream, or all
// the open streams on this BOSH session.
this.handle_client_stream_terminate_request(stream, nodes,
Expand Down Expand Up @@ -601,7 +601,7 @@ Session.prototype = {
// send to the client as to why the session was closed.
//
send_terminate_response: function (ro, condition) {
log.info("%s send_terminate_response - ro: %s, condition: %s", this.sid, !!ro, condition || "no-condition");
log.debug("%s send_terminate_response - ro: %s, condition: %s", this.sid, !!ro, condition || "no-condition");
var attrs = { };
if (condition) {
attrs.condition = condition;
Expand Down
4 changes: 2 additions & 2 deletions src/xmpp-proxy-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function XMPPProxyConnector(bosh_server, options) {

// Fired when an 'close' event is raised by the XMPP Proxy.
this._on_xmpp_proxy_close = function _on_xmpp_proxy_close(error, stream) {
log.info("%s %s - terminate stream", stream.session.sid, stream.name);
log.debug("%s %s - terminate stream", stream.session.sid, stream.name);
// Remove the object and notify the bosh server.
var ss = this.streams[stream.name];
if (!ss) {
Expand Down Expand Up @@ -189,7 +189,7 @@ XMPPProxyConnector.prototype = {
return;
}

log.info("%s %s stream_terminate", stream.session.sid, stream.name);
log.debug("%s %s stream_terminate", stream.session.sid, stream.name);
ss.proxy.terminate();
delete this.streams[stream.name];
}
Expand Down
8 changes: 4 additions & 4 deletions src/xmpp-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ dutil.copy(XMPPProxy.prototype, {

terminate: function() {
if (this._is_connected) {
log.info("%s %s - terminating", this._void_star.session.sid, this._void_star.name);
log.debug("%s %s - terminating", this._void_star.session.sid, this._void_star.name);
// Detach the 'data' handler so that we don't get any more events.
this._sock.removeAllListeners('data');
this._parser.end();
Expand Down Expand Up @@ -317,7 +317,7 @@ dutil.copy(XMPPProxy.prototype, {
},

_on_stream_end: function(attr) {
log.info("%s %s stream terminated", this._void_star.session.sid, this._void_star.name);
log.debug("%s %s stream terminated", this._void_star.session.sid, this._void_star.name);
this.terminate();
},

Expand All @@ -327,13 +327,13 @@ dutil.copy(XMPPProxy.prototype, {
},

_close_connection: function(error) {
log.info("%s %s error: %s", this._void_star.session.sid, this._void_star.name, error);
log.debug("%s %s error: %s", this._void_star.session.sid, this._void_star.name, error);
this.emit('close', error, this._void_star);
},

_on_close: function(had_error) {
had_error = had_error || false;
log.info("%s %s error: %s", this._void_star.session.sid, this._void_star.name, !!had_error);
log.debug("%s %s error: %s", this._void_star.session.sid, this._void_star.name, !!had_error);
this._close_connection(had_error ? 'remote-connection-failed' : null);
},

Expand Down

0 comments on commit be255e9

Please sign in to comment.