<p></p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1140138892" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/3029" data-hovercard-type="pull_request" data-hovercard-url="/kamailio/kamailio/pull/3029/hovercard" href="https://github.com/kamailio/kamailio/pull/3029">#3029</a> ## Description</p>
<p dir="auto">While the <code>kex</code> module exports a way to temporarily change the debug level, it cannot retrieve the current level.</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">I can write Python code like this:</p>
<pre><code>    if KSR.kex.getdebug() > 2:
        ... # generate detailed and somewhat-time-consuming debug output
        ... # which would just get dropped on the floor otherwise
</code></pre>
<h4 dir="auto">Actual observed behavior</h4>
<p dir="auto">If there is a way to get Kamailio's current and/or configured debug level, I didn't find it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3030">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIR2FIUACJ3NFTNHBTU3O5KZANCNFSM5OR4ZIHQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZILGNUDM447TWPCSR3U3O5KZA5CNFSM5OR4ZIH2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4Q7VJSLA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3030</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3030",
"url": "https://github.com/kamailio/kamailio/issues/3030",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>