fix: retain runtime logs (#191)

fix #183
This commit is contained in:
John Howe
2025-03-11 14:33:02 +08:00
committed by GitHub
parent ed6715b797
commit 3563d75a92
7 changed files with 10 additions and 7 deletions

0
logs/runtime/.gitkeep Normal file
View File

View File

@@ -9,5 +9,9 @@ host=0.0.0.0
port=2233
kill -9 $(ps aux | grep '[b]lrec' | awk '{print $2}')
nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH/logs/blrec.log 2>&1 &
echo "blrec run success!"
nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH/logs/runtime/blrec-$(date +%Y%m%d-%H%M%S).log 2>&1 &
if [ $? -eq 0 ]; then
echo "success"
else
echo "An error occurred while starting blrec. Check the logs for details."
fi

View File

@@ -1,7 +1,7 @@
# kill the previous scanSegments process
kill -9 $(ps aux | grep 'src.burn.scan' | grep -v grep | awk '{print $2}')
# start the scanSegments process
python -m src.burn.scan
nohup python -m src.burn.scan > $BILIVE_PATH/logs/runtime/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Check if the last command was successful
if [ $? -eq 0 ]; then
echo "success"

View File

@@ -13,7 +13,7 @@ duration_limit = 1800
out_dir = "./Videos"
[logging]
log_dir = "./logs/blrecLog"
log_dir = "./logs/blrec"
console_log_level = "INFO"
backup_count = 30

View File

@@ -6,7 +6,7 @@ from datetime import datetime
import configparser
# ============================ Your configuration ============================
GPU_EXIST=True
GPU_EXIST=False
# Can be pipeline, append, merge
MODEL_TYPE = "append"
Inference_Model = "small"

View File

@@ -2,8 +2,7 @@
kill -9 $(ps aux | grep '[u]pload' | awk '{print $2}')
kill -9 $(ps aux | grep '[b]iliup' | awk '{print $2}')
# start the scanSegments process
# nohup $BILIVE_PATH/src/upload/uploadQueue.sh > $BILIVE_PATH/logs/uploadQueue.log 2>&1 &
python -m src.upload.upload
nohup python -m src.upload.upload > $BILIVE_PATH/logs/runtime/upload-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Check if the last command was successful
if [ $? -eq 0 ]; then
echo "success"