Scraper/Websockets: Small cleanup of debug messages, dev config.

This commit is contained in:
umbrae
2014-03-26 13:35:43 -04:00
parent db27522eb6
commit 331fab6b7f
2 changed files with 7 additions and 2 deletions

View File

@@ -556,8 +556,12 @@ def _fetch_embedly_service_data():
def _fetch_embedly_services():
if not g.embedly_api_key:
g.log.warning("No embedly_api_key configured. Will not use embed.ly.")
return []
if g.debug:
g.log.info("No embedly_api_key, using no key while in debug mode.")
else:
g.log.warning("No embedly_api_key configured. Will not use "
"embed.ly.")
return []
service_data = _fetch_embedly_service_data()

View File

@@ -44,6 +44,7 @@ _.extend(r.WebSocket.prototype, Backbone.Events, {
jitter = (Math.random() * this._retryJitterAmount) - (this._retryJitterAmount / 2),
delay = Math.round(baseDelay + jitter)
r.debug('websocket: connection lost, reconnecting in ' + delay + 'ms')
r.debug("(can't connect? Make sure you've allowed https access in your browser.)")
this.trigger('reconnecting', delay)
setTimeout(_.bind(this._connect, this), delay)
} else {