v1.6 - logging optimizations
This commit is contained in:
parent
bbbfa803a9
commit
73277d5437
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="1.5"
|
scriptVersion="1.6"
|
||||||
scriptName="AutoArtistAdder"
|
scriptName="AutoArtistAdder"
|
||||||
|
|
||||||
log () {
|
log () {
|
||||||
|
@ -17,7 +17,6 @@ logfileSetup () {
|
||||||
touch "/config/logs/AutoArtistAdder.txt"
|
touch "/config/logs/AutoArtistAdder.txt"
|
||||||
chmod 666 "/config/logs/AutoArtistAdder.txt"
|
chmod 666 "/config/logs/AutoArtistAdder.txt"
|
||||||
fi
|
fi
|
||||||
exec &> >(tee -a "/config/logs/AutoArtistAdder.txt")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
verifyConfig () {
|
verifyConfig () {
|
||||||
|
@ -330,6 +329,9 @@ AddTidalArtistToLidarr () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Loop Script
|
||||||
|
logfileSetup
|
||||||
|
exec &> >(tee -a "/config/logs/AutoArtistAdder.txt")
|
||||||
# Loop Script
|
# Loop Script
|
||||||
for (( ; ; )); do
|
for (( ; ; )); do
|
||||||
let i++
|
let i++
|
||||||
|
|
Loading…
Reference in a new issue