mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Scraper/Websockets: Small cleanup of debug messages, dev config.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user