From efb4100e013d333161e0abb47b136eb1d150cf28 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 23 Aug 2010 13:58:09 -0700 Subject: [PATCH] Split up socket debug and app debug --- config/app_config.yml | 3 +++ config/initializers/socket.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/app_config.yml b/config/app_config.yml index 0c87b6b4c..1eee9376c 100644 --- a/config/app_config.yml +++ b/config/app_config.yml @@ -1,14 +1,17 @@ development: debug: false + socket_debug : false socket_port: 8080 pubsub_server: 'https://pubsubhubbub.appspot.com/' test: debug: false + socket_debug : false socket_port: 8081 pubsub_server: 'https://pubsubhubbub.appspot.com/' production: debug: false + socket_debug : false socket_port: 8080 pubsub_server: 'https://pubsubhubbub.appspot.com/' diff --git a/config/initializers/socket.rb b/config/initializers/socket.rb index 381d1f6c2..03f9e24eb 100644 --- a/config/initializers/socket.rb +++ b/config/initializers/socket.rb @@ -7,7 +7,7 @@ require "lib/diaspora/websocket" EventMachine::WebSocket.start( :host => "0.0.0.0", :port => APP_CONFIG[:socket_port], - :debug =>APP_CONFIG[:debug]) do |ws| + :debug =>APP_CONFIG[:socket_debug]) do |ws| ws.onopen { sid = Diaspora::WebSocket.subscribe(ws.request['Path'].gsub('/',''), ws)