Commit f6e5d7a41551ed32c71a5b3191b86d883b03eab0
Committed by
gtaaas
1 parent
3ca40619
Exists in
master
and in
1 other branch
Redireciona log do core para /tmp/log_core
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/controllers/static_controller.rb
@@ -31,10 +31,12 @@ class StaticController < ApplicationController | @@ -31,10 +31,12 @@ class StaticController < ApplicationController | ||
31 | end | 31 | end |
32 | 32 | ||
33 | if @presenter.subtitle.closed_caption == 1 || @presenter.subtitle.closed_caption == 3 | 33 | if @presenter.subtitle.closed_caption == 1 || @presenter.subtitle.closed_caption == 3 |
34 | - cmd = "../vlibras-core/./vlibras #{@presenter.subtitle.closed_caption} public#{@presenter.subtitle.url} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &" | 34 | + cmd = "../vlibras-core/./vlibras #{@presenter.subtitle.closed_caption} public#{@presenter.subtitle.url} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} >> /tmp/log_core 2>&1 &" |
35 | else | 35 | else |
36 | - cmd = "../vlibras-core/./vlibras 2 public#{@presenter.subtitle.url} public#{@presenter.subtitle.legend} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &" | 36 | + cmd = "../vlibras-core/./vlibras 2 public#{@presenter.subtitle.url} public#{@presenter.subtitle.legend} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} >> /tmp/log_core 2>&1 &" |
37 | end | 37 | end |
38 | + | ||
39 | + logger.debug(cmd) | ||
38 | #raise cmd.inspect | 40 | #raise cmd.inspect |
39 | system(cmd) | 41 | system(cmd) |
40 | end | 42 | end |