<div>v.yurin@hell:~$ erl -sasl sasl_error_logger false </div><div>Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]</div><div>Eshell V5.8.4  (abort with ^G)</div><div>1> application:start(sasl).</div><div>ok</div><div>2> application:get_env(sasl, sasl_error_logger).</div><div>{ok,false}</div><div>3> </div><div> </div><div>01.11.2012, 18:28, "Motiejus Jakštys" <desired.mta@gmail.com>:</div><blockquote type="cite"><p>Hi,<br /><br />a session is worth a thousand words:<br /><br />motiejus@precise> erl<br />Erlang R15B02 (erts-5.9.2) [source] [smp:2:2] [async-threads:0]<br />[kernel-poll:false]<br /><br />Eshell V5.9.2  (abort with ^G)<br /><br />1> application:set_env(sasl, sasl_error_logger, false).<br />ok<br />2> application:start(sasl).<br />ok<br />3> <br />=PROGRESS REPORT==== 1-Nov-2012::10:51:32 ===<br />          supervisor: {local,sasl_safe_sup}<br />             started: [{pid,<0.41.0>},<br />                       {name,alarm_handler},<br />                       {mfargs,{alarm_handler,start_link,[]}},<br />                       {restart_type,permanent},<br />                       {shutdown,2000},<br />                       {child_type,worker}]<br />...<br />3> application:get_env(sasl, sasl_error_logger).<br />{ok,tty}<br />4><br /><br />Conclusion is: if the value (in this case sasl_error_logger) is defined<br />in sasl.app, on application startup the value set by<br />application:set_env/3 is overwritten by the value from the .app file.<br />That means that if I want to change the value of sasl_error_logger, I<br />*must* use -config FILE when starting Erlang.<br /><br />Is there any other way to change that value in a running system, before<br />starting sasl?<br /><br />Best regards,<br />Motiejus<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">http://erlang.org/mailman/listinfo/erlang-questions</a></p></blockquote>