<div dir="ltr">Hi Jim,<div><br></div><div>When you run headless, there is no console/tty/stdio/etc. In Riak, we solve this using run_erl, which creates UNIX FIFO files that can be attached to separately and replace the standard in/out. I suspect there's nothing similar on Windows and this is the problem you're running into. Unfortunately we don't yet run on Windows.</div><div><br></div><div>However, we also found console output to have a significant impact on performance in many cases, so in production deploys we generally exclude it and just send it to a file instead.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 1:47 PM, jim rosenblum <span dir="ltr"><<a href="mailto:jim.rosenblum@gmail.com" target="_blank">jim.rosenblum@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have an application that uses Lager. I have created packages for Mac OSx, RedHat, Ubuntu and Windows and I have a problem that *only* manifests itself on Windows when my application is started via erlsrv - starting with werl.exe is fine.<div><br></div><div>I register the process via the cmd file produced by Rebar, called jc.cmd in my case. </div><div>When I start it in a console (i.e., 1> jc.cmd console), all is good, but when I start via '2> jc.cmd start' I get the following errors:</div><div><p><span>2015-02-03 08:07:31.394 [error] <0.73.0>@lager_handler_watcher:98 Lager fatally failed to install handler lager_console_backend into lager_event, NOT retrying: old_shell</span></p>
<p><span>2015-02-03 08:07:31.394 [warning] <0.68.0>@lager_console_backend:64 Lager's console backend is incompatible with the 'old' shell, not enabling it</span></p><p>The console command uses werl.exe, the start command uses erlsrv.</p><p><br></p><p>Can anyone help?</p><p><br></p><p>thanks</p></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Sean Cribbs <<a href="mailto:sean@basho.com" target="_blank">sean@basho.com</a>><br>Sr. Software Engineer<br>Basho Technologies, Inc.<br><a href="http://basho.com/" target="_blank">http://basho.com/</a></div>
</div>