Revert some changes
This commit is contained in:
parent
1931ed33b3
commit
71d1f0423b
@ -103,21 +103,6 @@ spinner_guard() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
log_message() {
|
|
||||||
local level="$1"
|
|
||||||
local message="$2"
|
|
||||||
local timestamp
|
|
||||||
local logdate
|
|
||||||
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
|
||||||
logdate=$(date '+%Y-%m-%d')
|
|
||||||
|
|
||||||
LOGDIR="/usr/local/community-scripts/logs"
|
|
||||||
mkdir -p "$LOGDIR"
|
|
||||||
|
|
||||||
LOGFILE="${LOGDIR}/${logdate}_${NSAPP}.log"
|
|
||||||
echo "$timestamp - $level: $message" >>"$LOGFILE"
|
|
||||||
}
|
|
||||||
|
|
||||||
msg_info() {
|
msg_info() {
|
||||||
local msg="$1"
|
local msg="$1"
|
||||||
if [ "${SPINNER_ACTIVE:-0}" -eq 1 ]; then
|
if [ "${SPINNER_ACTIVE:-0}" -eq 1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user