<p><a href="https://gerrit.osmocom.org/10116">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/10116/1/src/logging.c">File src/logging.c:</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/10116/1/src/logging.c@70">Patch Set #1, Line 70:</a> <code style="font-family:monospace,monospace">0</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Feel free to use 'LOGL_UNSET' here ;)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10116/1/src/logging.c@721">Patch Set #1, Line 721:</a> <code style="font-family:monospace,monospace">    for (i = 0; i < osmo_log_info->num_cat; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Would be great to have a comment here, what this loop<br>is actually doing? Resetting all categories to 'unset'?</p><p style="white-space: pre-wrap; word-wrap: break-word;">As I understand, setting:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  logging level all error<br>  logging level l1p notice<br>  logging level l1c error</pre><p style="white-space: pre-wrap; word-wrap: break-word;">and then:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  logging level all notice</pre><p style="white-space: pre-wrap; word-wrap: break-word;">would reset log_levels for both 'l1p' and 'l1c' to 'unset'?</p><p style="white-space: pre-wrap; word-wrap: break-word;">What if I need to change to global logging level without<br>resetting the existing categories? I think we can introduce<br>something like this:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  logging level all notice [reset]</pre><p style="white-space: pre-wrap; word-wrap: break-word;">or like this:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  logging level global notice // Only changes the global<br>  logging level all notice // Resets all categories to 'notice'</pre><p style="white-space: pre-wrap; word-wrap: break-word;">What do you think?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/10116/1/src/vty/logging_vty.c">File src/vty/logging_vty.c:</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/10116/1/src/vty/logging_vty.c@a283">Patch Set #1, Line 283:</a> <code style="font-family:monospace,monospace"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Probably, it makes sense to keep informing user that 'everything' is deprecated, but now is reused as 'unset'...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/10116">change 10116</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/10116"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I0f50ad8d6fd038398f7d751287417505c8dcdeff </div>
<div style="display:none"> Gerrit-Change-Number: 10116 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 23 Jul 2018 13:42:21 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>