<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6862">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">logger: Always run rotate_file on huge log files.<br><br>It's valid for rotatestrategy is NONE with exec_after_rotate set.  This<br>could be used to setup external log rotation.  When we encounter a huge<br>log file we should always call rotate_file to allow external log<br>rotation to deal with the rotation.<br><br>ASTERISK-27367<br><br>Change-Id: I3633c24242b88da9daa1d2217dcde0b302e03653<br>---<br>M main/logger.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/62/6862/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/logger.c b/main/logger.c<br>index 6060b3c..cb4cf38 100644<br>--- a/main/logger.c<br>+++ b/main/logger.c<br>@@ -1094,7 +1094,7 @@<br>          }<br>             if (f->fileptr && (f->fileptr != stdout) && (f->fileptr != stderr)) {<br>                        int rotate_this = 0;<br>-                 if (rotatestrategy != NONE && ftello(f->fileptr) > 0x40000000) { /* Arbitrarily, 1 GB */<br>+                       if (ftello(f->fileptr) > 0x40000000) { /* Arbitrarily, 1 GB */<br>                          /* Be more proactive about rotating massive log files */<br>                              rotate_this = 1;<br>                      }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6862">change 6862</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/6862"/><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: I3633c24242b88da9daa1d2217dcde0b302e03653 </div>
<div style="display:none"> Gerrit-Change-Number: 6862 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>