mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复 ql 命令日志目录
This commit is contained in:
+3
-3
@@ -432,12 +432,12 @@ main() {
|
||||
local p5=$5
|
||||
local p6=$6
|
||||
local p7=$7
|
||||
local log_dir="${dir_log}/${p1}"
|
||||
make_dir "${log_dir}"
|
||||
local log_dir="${p1}"
|
||||
make_dir "$dir_log/$log_path"
|
||||
local log_time=$(date "+%Y-%m-%d-%H-%M-%S")
|
||||
local log_path="${log_dir}/${log_time}.log"
|
||||
|
||||
cmd=">> $log_path 2>&1"
|
||||
cmd=">> $dir_log/$log_path 2>&1"
|
||||
[[ "$show_log" == "true" ]] && cmd=""
|
||||
[[ -f $task_error_log_path ]] && cat $task_error_log_path $cmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user