From 6fb8ad4b147dc8e7028fb4bb349a86375a5ad49e Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 10 May 2015 21:19:45 +0200 Subject: [PATCH] Improved websocket logging. --- app/assets/javascripts/app/lib/app_post/websocket.js.coffee | 4 +++- script/bootstrap.sh | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/websocket.js.coffee b/app/assets/javascripts/app/lib/app_post/websocket.js.coffee index 8c08194ba..d06ff12aa 100644 --- a/app/assets/javascripts/app/lib/app_post/websocket.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/websocket.js.coffee @@ -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 diff --git a/script/bootstrap.sh b/script/bootstrap.sh index dbdf47165..876067bfe 100755 --- a/script/bootstrap.sh +++ b/script/bootstrap.sh @@ -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 -