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:
parent
724e449bf8
commit
856c28d55d
@ -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
|
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.
|
If you enable that option, everytime you restart, your existing log file will be deleted.
|
||||||
|
|
||||||
|
@ -33,10 +33,10 @@ function log_level {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function develop {
|
function delete_log {
|
||||||
local devel logfile
|
local devel logfile
|
||||||
logfile="$(get_param "webcamd" log_path | sed "s#^~#$HOME#gi")"
|
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
|
if [ "${devel}" = "true" ]; then
|
||||||
rm -rf "${logfile}"
|
rm -rf "${logfile}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user