<div dir="ltr"><div>I have a little issue where I would like to output lager debug-messages when running common tests. But I can't get it to work. </div><div><br></div><div>In `init_pr_suite` I have </div><div><br></div><div>application:load(lager),<br></div><div><div>application:set_env(lager, handlers, [{lager_console_backend, debug}, {lager_common_test_backend, debug}]),</div></div><div><br></div><div>And in the test-code I have this little snippet:</div><div><br></div><div><div> ct:log("ENV ~p", [application:get_all_env(lager)]),</div><div> lager:warning("Now you see me"),</div><div> lager:debug("Now you don't"),</div></div><div><br></div><div>Which outputs:</div><div><br></div><div><div>*** User 2017-04-08 07:36:42.089 ***</div><div>ENV [{crash_log_count,5},</div><div> {crash_log_date,"$D0"},</div><div> {colored,false},</div><div> {crash_log_msg_size,65536},</div><div> {colors,[{debug,"\e[0;38m"},</div><div> {info,"\e[1;37m"},</div><div> {notice,"\e[1;36m"},</div><div> {warning,"\e[1;33m"},</div><div> {error,"\e[1;31m"},</div><div> {critical,"\e[1;35m"},</div><div> {alert,"\e[1;44m"},</div><div> {emergency,"\e[1;41m"}]},</div><div> {included_applications,[]},</div><div> {async_threshold,20},</div><div> {crash_log_size,10485760},</div><div> {error_logger_whitelist,[cth_readable_failonly]},</div><div> {error_logger_redirect,true},</div><div> {async_threshold_window,5},</div><div> {crash_log,"log/crash.log"},</div><div> {error_logger_hwm,50},</div><div> {handlers,[{lager_console_backend,debug},</div><div> {lager_common_test_backend,debug}]}]</div><div><br></div><div>*** User 2017-04-08 07:36:42.090 ***</div><div>07:36:42.089 [warning] Now you see me</div><div><br></div></div><div><br></div><div>Missing the debug-line.</div><div><br></div><div>So what am I missing? Is `lager_common_test_backend` the wrong flag? Or is CT muting debug-messages anyway?</div><div><br></div><br clear="all"><div><div class="gmail-m_-4121641883667506117gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Best regards</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Bjarne Wichmann Bagge Petersen</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Backend Developer<span style="color:rgb(68,68,68);line-height:20.8px;white-space:pre-wrap;font-size:12.8px">, ShopGun</span></div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(68,68,68);line-height:20.8px"><br></pre><div style="font-size:12.8px"><span style="font-size:12.8px">E: <a href="mailto:bp@shopgun.com" target="_blank">bp@shopgun.com</a> </span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">L: </span><a href="http://dk.linkedin.com/in/bjarnewp" style="font-size:12.8px" target="_blank">dk.linkedin.com/in/bjarnewp</a><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">W: <a href="http://shopgun.com" target="_blank">shopgun.com</a> </span><br></div><div><span style="line-height:20.8px;white-space:pre-wrap;color:rgb(68,68,68);font-size:12.8px">A: Arne Jacobsens Allé 16, Field's, 3rd floor, DK-2300 København S, Denmark</span></div></div></div></div></div></div></div></div>
</div>
<br>
<div><span style="font-size:small;background-color:rgb(255,255,255)">ShopGun</span><span style="font-size:small;background-color:rgb(255,255,255)">, your helping hand in shopping, is available at </span><a href="http://shopgun.com" style="font-size:small;background-color:white" target="_blank">shopgun.com</a><span style="font-size:small;background-color:white"> and as the </span><a href="http://shopgun.com/app/download/" style="font-size:small;background-color:white" target="_blank">ShopGun app</a><font size="2"><span style="background-color:rgb(255,255,255)">.</span></font></div><div style="font-size:1.3em"><span style="background-color:white"><font size="2"><br></font></span></div><div style="font-size:1.3em"><span style="background-color:white"><font color="#808080" size="2">This email is intended solely for the addressee and may contain confidential information and/or privileged confidential advice. If you receive this email by mistake, please do not read, print, transmit, store, or in any other way use the email or its attachments. Instead, please notify the addresser immediately and then permanently delete it. Thank you.</font></span></div>