Skip to content

Commit

Permalink
rename error to warning
Browse files Browse the repository at this point in the history
Signed-off-by: WashingtonKK <[email protected]>
  • Loading branch information
WashingtonKK committed Sep 20, 2024
1 parent 4c09b4b commit 8c86a1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions agent/algorithm/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ var (
)

const (
bufSize = 1024
algorithmRun = "AlgorithmRun"
errorStatus = "Error"
bufSize = 1024
algorithmRun = "AlgorithmRun"
warningStatus = "Warning"
)

type Stdout struct {
Expand Down Expand Up @@ -70,7 +70,7 @@ func (s *Stderr) Write(p []byte) (n int, err error) {
s.Logger.Error(string(buf[:n]))
}

if err := s.EventSvc.SendEvent(algorithmRun, errorStatus, json.RawMessage{}); err != nil {
if err := s.EventSvc.SendEvent(algorithmRun, warningStatus, json.RawMessage{}); err != nil {
return len(p), err
}

Expand Down
2 changes: 1 addition & 1 deletion agent/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
Ready
Completed
Terminated
Error
Warning
)

type event uint8
Expand Down
6 changes: 3 additions & 3 deletions agent/status_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c86a1a

Please sign in to comment.