Skip to content

Commit

Permalink
Log fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jhs committed Jun 8, 2011
1 parent 792401a commit 28c1d40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions feed.js
Expand Up @@ -27,6 +27,7 @@ function Feed (db) {
self.feed = 'continuous';
self.heartbeat = DEFAULT_HEARTBEAT;
self.max_retry_seconds = DEFAULT_MAX_RETRY_SECONDS;
self.inactivity_ms = null;

self.headers = {};
self.request = {}; // Extra options for potentially future versions of request. The caller can supply them.
Expand Down Expand Up @@ -223,16 +224,16 @@ Feed.prototype.prep = function prep_request(req) {
var msg = req.id() + ': to_req=' + s_to_req + 's, to_now=' + s_to_now + 's';

if(ev === 'end') {
return self.log.debug('Old END ' + msg);
return self.log.debug('Old END' + msg);
return destroy_req(req);
}

if(ev === 'data') {
self.log.debug('Old DATA ' + msg);
self.log.debug('Old DATA' + msg);
return destroy_req(req);
}

self.log.warn('Received "' + ev + '" from old request started ' + s_to_req + 's before current and ' + s_to_now + 's before now');
self.log.warn('Old "'+ev+'"' + msg);
}

return handle_confirmed_req_event;
Expand Down

0 comments on commit 28c1d40

Please sign in to comment.