<p><a href="https://gerrit.osmocom.org/c/osmo-trx/+/19804">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-trx/+/19804/1/CommonLibs/Logger.h">File CommonLibs/Logger.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-trx/+/19804/1/CommonLibs/Logger.h@55">Patch Set #1, Line 55:</a> <code style="font-family:monospace,monospace">#define MAYBE_LOG(src, level) if (!log_check_level(src, level) || DISABLE_ALL_LOGGING) {} else</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">So there's two things here in the same patch: […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Well the problem is even if you undef the actual logging macro everything else still happens and the stream is still being fed a log line in small chunks.</p><p style="white-space: pre-wrap; word-wrap: break-word;">As long as convenient stream based logging is happening there is no way around protecting the log line stream with a log object, and the checks happen too late, and there is no way around that within the log object. </p><p style="white-space: pre-wrap; word-wrap: break-word;">The only way is therefore to either ditch the stream and change all log lines to a function call or to "wrap" them with this if macro that has to end without braces and unfortunately gets killed by the useless werror...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-trx/+/19804">change 19804</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-trx/+/19804"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I353ded020844eb4df7d7803785663789f8211d23 </div>
<div style="display:none"> Gerrit-Change-Number: 19804 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 27 Aug 2020 14:57:23 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>