mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 08:54:16 +01:00
* #3872 adding shrinkdebugfile=1
This commit is contained in:
parent
1404ac3285
commit
de18ad8b36
1 changed files with 4 additions and 2 deletions
|
@ -897,8 +897,10 @@ else
|
|||
################################
|
||||
# LND and Blockchain Errors will be still in systemd journals
|
||||
|
||||
# /mnt/hdd/bitcoin/debug.log
|
||||
rm /mnt/hdd/${network}/debug.log 2>/dev/null
|
||||
# limit debug.log to 10MB on start - see #3872
|
||||
if [ $(grep -c "shrinkdebugfile=" < /mnt/hdd/bitcoin/bitcoin.conf) -eq 0 ];then
|
||||
echo "shrinkdebugfile=1" | sudo tee -a /mnt/hdd/bitcoin/bitcoin.conf
|
||||
fi
|
||||
# /mnt/hdd/lnd/logs/bitcoin/mainnet/lnd.log
|
||||
rm /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log 2>/dev/null
|
||||
# https://github.com/rootzoll/raspiblitz/issues/1700
|
||||
|
|
Loading…
Add table
Reference in a new issue