REFACTOR: Renamed develop_log option.

* Renamed develop_log to mor intuitive delete_log

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2021-12-12 12:12:15 +01:00
parent 724e449bf8
commit 856c28d55d
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639
3 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ This option ist more for debugging purposes and has a tendency to overwhelm you
Another Option that affects the 'logging' behavior is
develop_log: true
delete_log: true
If you enable that option, everytime you restart, your existing log file will be deleted.

View File

@ -33,10 +33,10 @@ function log_level {
fi
}
function develop {
function delete_log {
local devel logfile
logfile="$(get_param "webcamd" log_path | sed "s#^~#$HOME#gi")"
devel="$(get_param "webcamd" develop_log 2> /dev/null)"
devel="$(get_param "webcamd" delete_log 2> /dev/null)"
if [ "${devel}" = "true" ]; then
rm -rf "${logfile}"
fi

View File

@ -135,7 +135,7 @@ while getopts ":vhc:" arg; do
esac
done
develop
delete_log
init_log_entry
initial_check
v4l2_control