We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bd5ca4 commit 1c58c2cCopy full SHA for 1c58c2c
.github/workflows/lib_run.yml
@@ -83,6 +83,7 @@ jobs:
83
shell: pwsh
84
run: |
85
$logFile = Join-Path $PWD "output.log"
86
+ $env:DEBUG_MODE = "1"
87
$proc = Start-Process -FilePath ".\testbin.exe" -NoNewWindow -PassThru -RedirectStandardOutput "$logFile" -RedirectStandardError (Join-Path $PWD "stderr.log")
88
$found = $false
89
for ($i = 0; $i -lt 60; $i++) {
abineundo/console_windows.go
@@ -71,6 +71,11 @@ func init() {
71
stdout := windows.Handle(os.Stdout.Fd())
72
err = windows.GetConsoleMode(stdout, &mode)
73
if err != nil {
74
+ if debugMode {
75
+ logrus.Warnf("调试模式下忽略控制台模式获取失败: %v", err)
76
+ logrus.SetFormatter(&logFormat{hasColor: false})
77
+ return
78
+ }
79
panic(err)
80
}
81
0 commit comments