diff --git a/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysqlclient_exec.go b/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysqlclient_exec.go index bfe89ef0b2..bc0997d0a8 100644 --- a/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysqlclient_exec.go +++ b/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysqlclient_exec.go @@ -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)