<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6621">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Corey Farrell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">logger: Bring back ability to turn debug on by source file<br><br>Somewhere along the way we lost the ability to debug individual<br>source files. For modules, this wasn't a big deal but all the<br>source files in ./main are in the one "core" module so debugging<br>individual core capabilities was almost impossible.<br><br>* Added a test to DEBUG_ATLEAST that also checks __FILE__ instead<br>of just module name. Any source file will work even if it's in<br>a module subdirectory.<br><br>Change-Id: Icc0af41837f3b1679dec7af21fa32cd1f7469f6e<br>---<br>M include/asterisk/logger.h<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h<br>index 849f986..8b1e5fe 100644<br>--- a/include/asterisk/logger.h<br>+++ b/include/asterisk/logger.h<br>@@ -429,7 +429,9 @@<br> <br> #define DEBUG_ATLEAST(level) \<br> (option_debug >= (level) \<br>- || (ast_opt_dbg_module && (int)ast_debug_get_by_module(AST_MODULE) >= (level)))<br>+ || (ast_opt_dbg_module \<br>+ && ((int)ast_debug_get_by_module(AST_MODULE) >= (level) \<br>+ || (int)ast_debug_get_by_module(__FILE__) >= (level))))<br> <br> /*!<br> * \brief Log a DEBUG message<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6621">change 6621</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6621"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Icc0af41837f3b1679dec7af21fa32cd1f7469f6e </div>
<div style="display:none"> Gerrit-Change-Number: 6621 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>