Diff: [root] @ d7649ec7645 | faq | css

Added couple traces to l29ah

File: scripts/emul29ah.erb [Diff]

diff --git a/scripts/emul29ah.erb b/scripts/emul29ah.erb
index 96161d7..0161a3b 100644
-- a/scripts/emul29ah.erb
++ b/scripts/emul29ah.erb
@@ -9,12 +9,14 @@

<%
response = Open3.popen3("hmark /home/bitcheese_net/l29ah burst") do |stdin, stdout, stderr|
Rails.logger.warn("writing #{params[:sentence]}")
stdin.write(params[:sentence])
stdin.close
err = stderr.read
Rails.logger.error "hmark fucked up: #{err}" unless err.empty?
stdout.read
end
Rails.logger.warn("got #{response}")
%>

<pre>
@@ -22,4 +24,4 @@
[emul29ah] <%= h response %>
</pre>

<% end %>

\ No newline at end of file
<% end %>

By Iaroslav Gridin on 2018-01-17 17:10:06 +0200 Powered by bitcheese wiki engine