Skip to content

Commit 88a2e94

Browse files
committed
Update extended data message when running in only capture mode
1 parent af2bfb1 commit 88a2e94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/capture/extended_data.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"time"
1010

1111
"yc-agent/internal/capture/executils"
12+
"yc-agent/internal/config"
1213
"yc-agent/internal/logger"
1314
)
1415

@@ -221,6 +222,13 @@ func (ed *ExtendedData) uploadCapturedFiles() (Result, error) {
221222
}
222223
}
223224

225+
if config.GlobalConfig.OnlyCapture {
226+
return Result{
227+
Msg: fmt.Sprintf("captured %d files, uploaded 0, because of running in Only Capture mode.\n", successCount+failCount),
228+
Ok: true,
229+
}, nil
230+
}
231+
224232
if failCount > 0 {
225233
return Result{
226234
Msg: fmt.Sprintf("captured %d files, uploaded %d: \n%s", successCount+failCount, successCount, strings.Join(uploadMsgs, "\n")),

0 commit comments

Comments
 (0)