[Watchdog] Do not trim after each push to Redis

master
André 2018-08-02 12:16:05 +02:00
parent f8f87d4744
commit f5fb7f6da5
1 changed files with 0 additions and 1 deletions

View File

@ -37,7 +37,6 @@ log_msg() {
redis-cli -h redis LPUSH WATCHDOG_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${1}" | \
tr '%&;$"_[]{}-\r\n' ' ')\"}" > /dev/null
fi
redis-cli -h redis LTRIM WATCHDOG_LOG 0 ${LOG_LINES} > /dev/null
echo $(date) $(printf '%s\n' "${1}")
}