Skip to content

Commit

Permalink
Cleared NotificationMessageLine after applying to NotificationMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prince committed Jul 1, 2024
1 parent 197deff commit dde4130
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func Process() error {
NotificationMessage += "\n"
}
NotificationMessage += NotificationMessageLine
NotificationMessageLine = ""

fmt.Printf(Red+"X"+Reset+" | Error - log stored at /logs/%s.log\n", logID)

Expand Down Expand Up @@ -240,6 +241,7 @@ func ProcessJsonFile(FilePath string) (ExecResult, error) {
NotificationMessage += "\n"
}
NotificationMessage += NotificationMessageLine
NotificationMessageLine = ""
return ExecResult, nil

}

0 comments on commit dde4130

Please sign in to comment.