[agent-go] [status] - update code
This commit is contained in:
@@ -109,6 +109,7 @@ func executorOMHandler(octopusMessage *OctopusMessage) {
|
||||
func statusOMHandler(octopusMessage *OctopusMessage) {
|
||||
|
||||
statusMsgString := octopusMessage.Content.(string)
|
||||
|
||||
var statusMessage *status.StatusMessage
|
||||
err := json.Unmarshal([]byte(statusMsgString), &statusMessage)
|
||||
if err != nil {
|
||||
@@ -132,5 +133,5 @@ func statusOMHandler(octopusMessage *OctopusMessage) {
|
||||
}
|
||||
|
||||
func blackHoleOMHandler(octopusMessage *OctopusMessage) {
|
||||
log.Error(fmt.Sprintf("octopusMessage type wrong! msg is => %v", octopusMessage))
|
||||
log.Error(fmt.Sprintf("[BLACK HOLE] octopusMessage type wrong! msg is => %v", octopusMessage))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user