1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add and remove logs on omr-tracker

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-02-11 12:06:41 +01:00
parent 095a7b0b51
commit 1bcfffa392
2 changed files with 33 additions and 29 deletions

View file

@ -85,7 +85,11 @@ _post_tracking() {
_log() {
logger -t "post-tracking-${tracker_bin##*/}" "$*"
}
. "$tracker_bin"
tmp=$(mktemp)
. "$tracker_bin" 2>&1 > "$tmp"
trackresult=$(< "$tmp")
[ -n "$trackresult" ] && _log $trackresult
rm -f "$tmp"
)
done
}