Merge pull request #20533 from owncloud/log-level
clarify log level setting design, fix #20514
This commit is contained in:
commit
4ff34daedb
1 changed files with 10 additions and 9 deletions
|
@ -491,15 +491,6 @@ if ($_['cronErrors']) {
|
|||
|
||||
<div class="section" id="log-section">
|
||||
<h2><?php p($l->t('Log'));?></h2>
|
||||
<?php p($l->t('Log level'));?> <select name='loglevel' id='loglevel'>
|
||||
<?php for ($i = 0; $i < 5; $i++):
|
||||
$selected = '';
|
||||
if ($i == $_['loglevel']):
|
||||
$selected = 'selected="selected"';
|
||||
endif; ?>
|
||||
<option value='<?php p($i)?>' <?php p($selected) ?>><?php p($levelLabels[$i])?></option>
|
||||
<?php endfor;?>
|
||||
</select>
|
||||
<?php if ($_['showLog'] && $_['doesLogFileExist']): ?>
|
||||
<table id="log" class="grid">
|
||||
<?php foreach ($_['entries'] as $entry): ?>
|
||||
|
@ -537,6 +528,16 @@ if ($_['cronErrors']) {
|
|||
</em>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<p><?php p($l->t('What to log'));?> <select name='loglevel' id='loglevel'>
|
||||
<?php for ($i = 0; $i < 5; $i++):
|
||||
$selected = '';
|
||||
if ($i == $_['loglevel']):
|
||||
$selected = 'selected="selected"';
|
||||
endif; ?>
|
||||
<option value='<?php p($i)?>' <?php p($selected) ?>><?php p($levelLabels[$i])?></option>
|
||||
<?php endfor;?>
|
||||
</select></p>
|
||||
</div>
|
||||
|
||||
<div class="section" id="admin-tips">
|
||||
|
|
Loading…
Reference in a new issue