From 856c28d55df89d1bc51378ff12489c52242b5cc4 Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Sun, 12 Dec 2021 12:12:15 +0100 Subject: [PATCH] REFACTOR: Renamed develop_log option. * Renamed develop_log to mor intuitive delete_log Signed-off-by: Stephan Wendel --- README.md | 2 +- libs/logging.sh | 4 ++-- webcamd | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3ec5b27..d388383 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/libs/logging.sh b/libs/logging.sh index ee70dbe..8fd10dd 100755 --- a/libs/logging.sh +++ b/libs/logging.sh @@ -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 diff --git a/webcamd b/webcamd index 54c9852..22a5c67 100755 --- a/webcamd +++ b/webcamd @@ -135,7 +135,7 @@ while getopts ":vhc:" arg; do esac done -develop +delete_log init_log_entry initial_check v4l2_control