<p>Benoît Dereck-Tricot has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7896">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx: Reduce verbosity while loading extensions<br><br>Each time the dial plan is reloaded, a lot of logs like these are generated:<br>"Added extension 'XXXXX' priority 1 to YYYYYYYYYYY"<br>This patch changes the log level for those logs.<br><br>ASTERISK-27084<br><br>Change-Id: I5662902161c50890997ddc56835d4cafb456c529<br>---<br>M main/config.c<br>M main/pbx.c<br>2 files changed, 7 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/96/7896/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/config.c b/main/config.c<br>index a76d087..dfcd570 100644<br>--- a/main/config.c<br>+++ b/main/config.c<br>@@ -2191,7 +2191,7 @@<br>                          /* If we get to this point, then we're loading regardless */<br>                              ast_clear_flag(&flags, CONFIG_FLAG_FILEUNCHANGED);<br>                                ast_debug(1, "Parsing %s\n", fn);<br>-                          ast_verb(2, "Parsing '%s': Found\n", fn);<br>+                          ast_verb(4, "Parsing '%s': Found\n", fn);<br>                           while (!feof(f)) {<br>                                    lineno++;<br>                                     if (fgets(buf, sizeof(buf), f)) {<br>diff --git a/main/pbx.c b/main/pbx.c<br>index b850e8e..039278e 100644<br>--- a/main/pbx.c<br>+++ b/main/pbx.c<br>@@ -6207,14 +6207,14 @@<br>           *local_contexts = tmp;<br>                ast_hashtab_insert_safe(contexts_table, tmp); /*put this context into the tree */<br>             ast_unlock_contexts();<br>-               ast_verb(3, "Registered extension context '%s'; registrar: %s\n", tmp->name, registrar);<br>+                ast_verb(6, "Registered extension context '%s'; registrar: %s\n", tmp->name, registrar);<br>         } else {<br>              tmp->next = *local_contexts;<br>               if (exttable)<br>                         ast_hashtab_insert_immediate(exttable, tmp); /*put this context into the tree */<br> <br>           *local_contexts = tmp;<br>-               ast_verb(3, "Registered extension context '%s'; registrar: %s\n", tmp->name, registrar);<br>+                ast_verb(6, "Registered extension context '%s'; registrar: %s\n", tmp->name, registrar);<br>         }<br>     return tmp;<br> }<br>@@ -6245,7 +6245,7 @@<br> {<br>    int idx;<br> <br>-  ast_verb(3, "merging incls/swits/igpats from old(%s) to new(%s) context, registrar = %s\n", ast_get_context_name(old), ast_get_context_name(new), registrar);<br>+      ast_verb(6, "merging incls/swits/igpats from old(%s) to new(%s) context, registrar = %s\n", ast_get_context_name(old), ast_get_context_name(new), registrar);<br>       /* copy in the includes, switches, and ignorepats */<br>  /* walk through includes */<br>   for (idx = 0; idx < ast_context_includes_count(old); idx++) {<br>@@ -6699,7 +6699,7 @@<br>               ast_unlock_context(con);<br>              return -1;<br>    }<br>-    ast_verb(3, "Including context '%s' in context '%s'\n",<br>+    ast_verb(6, "Including context '%s' in context '%s'\n",<br>             ast_get_include_name(new_include), ast_get_context_name(con));<br> <br>     ast_unlock_context(con);<br>@@ -7517,10 +7517,10 @@<br>     }<br> <br>  if (tmp->matchcid == AST_EXT_MATCHCID_ON) {<br>-               ast_verb(3, "Added extension '%s' priority %d (CID match '%s') to %s\n",<br>+           ast_verb(6, "Added extension '%s' priority %d (CID match '%s') to %s\n",<br>                             tmp->name, tmp->priority, tmp->cidmatch_display, con->name);<br>     } else {<br>-             ast_verb(3, "Added extension '%s' priority %d to %s\n",<br>+            ast_verb(6, "Added extension '%s' priority %d to %s\n",<br>                              tmp->name, tmp->priority, con->name);<br>       }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7896">change 7896</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/7896"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5662902161c50890997ddc56835d4cafb456c529 </div>
<div style="display:none"> Gerrit-Change-Number: 7896 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Benoît Dereck-Tricot <benoit.dereck-tricot@eyepea.eu> </div>