Improved websocket logging.

This commit is contained in:
Martin Edenhofer 2015-05-10 21:19:45 +02:00
parent 4de56f007f
commit 6fb8ad4b14
2 changed files with 4 additions and 3 deletions

View file

@ -244,7 +244,9 @@ class _webSocketSingleton extends App.Controller
# use ajax fallback if no connection was possible
if @backend is 'websocketPort'
@log 'notice', 'no websocket connection on :port/, use ajax long polling as fallback'
if @backend_port
port = ":#{@backend_port}"
@log 'notice', 'no websocket connection on port #{port}, use ajax long polling as fallback'
@backend = 'ajax'
@connect()
return

View file

@ -2,9 +2,8 @@
bundle install
rm -rf tmp/cache/file_store
rm -rf tmp/cache_file_store_*
rake db:create
rake db:migrate
rake db:seed