Skip to content

Commit

Permalink
fix: sql_result_do_not_output_file #7235
Browse files Browse the repository at this point in the history
  • Loading branch information
xfan0805 authored and iSecloud committed Oct 9, 2024
1 parent e67ba3d commit 0c239b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ func (e ExecuteSqlAtLocal) ExcuteCommand(command string, report bool) (err error
defer ef.Close()
defer ef.Sync()
// 标准输出复制一份到错误文件中
// stdout := io.MultiWriter(os.Stdout)
stdout := io.MultiWriter(os.Stdout, ef)
stdout := io.MultiWriter(os.Stdout)
//stdout := io.MultiWriter(os.Stdout, ef)
// 错误不输出控制台 去掉os.Stderr
// stderr := io.MultiWriter(os.Stderr, &stderrBuf, ef)
stderr := io.MultiWriter(&stderrBuf, ef)
Expand Down

0 comments on commit 0c239b8

Please sign in to comment.