Update Birdnet Snipper to insert out new setting options

Update Birdnet Snipper to insert out new setting options
Update log level descriptions.
This commit is contained in:
jaredb7
2023-04-13 22:42:01 +10:00
parent 1b3a31c3ee
commit fa5662fa00
2 changed files with 15 additions and 3 deletions
+3 -3
View File
@@ -560,7 +560,7 @@ foreach($formats as $format){
<td>
<h2>Logging</h2>
<div class="callout callout-warning">
<h4>Note:</h4>
<b>Note:</b>
It is recommended that the Log Level be set to <b>Error</b> on production systems to keep output
manageable by only reporting errors.
<br>
@@ -627,8 +627,8 @@ foreach($formats as $format){
<small>
<b>'error'</b> - Show all errors, including ones which can be recovered from. This is the default value.<br>
<b>'warning'</b> - Show all warnings and errors. Any message related to possibly incorrect or unexpected events will be shown.<br>
<b>'info'</b> - Show informative messages and output during processing. This is in addition to warnings and errors. <br>
<b>'debug'</b> - Show everything, including debugging information.<br>
<b>'info'</b> - Show informative messages and output during processing. This is in addition to warnings and errors. This will produce more output, use this for initial debugging.<br>
<b>'debug'</b> - Show everything, including debugging information. Produces a lot of output.<br>
</small>
</td>
</tr>
+12
View File
@@ -191,6 +191,18 @@ if ! grep RTSP_STREAM_TO_LIVESTREAM /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "RTSP_STREAM_TO_LIVESTREAM=\"0\"" >> /etc/birdnet/birdnet.conf
fi
# For new Advanced Setting Logging level options,
if ! grep LogLevel_BirdnetRecordingService /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "LogLevel_BirdnetRecordingService=\"error\"" >> /etc/birdnet/birdnet.conf
fi
if ! grep LogLevel_LiveAudioStreamService /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "LogLevel_LiveAudioStreamService=\"error\"" >> /etc/birdnet/birdnet.conf
fi
if ! grep LogLevel_SpectrogramViewerService /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "LogLevel_SpectrogramViewerService=\"error\"" >> /etc/birdnet/birdnet.conf
fi
sudo systemctl daemon-reload
restart_services.sh