diff --git a/subs/client.go b/subs/client.go index b2a8bff..60bcbe1 100644 --- a/subs/client.go +++ b/subs/client.go @@ -36,9 +36,10 @@ func (h *socketEventHandler) handleModuleReady(conn ws.Conn, data []byte) string } if applyLogResponse.ApplyError != "" { log.WithMetadata(map[string]interface{}{ - "comment": applyLogResponse.Comment, - "applyError": applyLogResponse.ApplyError, - }).Warn(codes.SyncApplyError, "apply UpdateBackendDeclarationCommand") + "comment": applyLogResponse.Comment, + "applyError": applyLogResponse.ApplyError, + "commandName": "UpdateBackendDeclarationCommand", + }).Warn(codes.SyncApplyError, "apply command") return applyLogResponse.ApplyError } } diff --git a/subs/helpers.go b/subs/helpers.go index 722e094..3b11bdd 100644 --- a/subs/helpers.go +++ b/subs/helpers.go @@ -20,8 +20,9 @@ func (h *socketEventHandler) SyncApplyCommand(command []byte, commandName string } if applyLogResponse != nil && applyLogResponse.ApplyError != "" { log.WithMetadata(map[string]interface{}{ - "comment": applyLogResponse.Comment, - "applyError": applyLogResponse.ApplyError, - }).Warnf(codes.SyncApplyError, "apply %s", commandName) + "comment": applyLogResponse.Comment, + "applyError": applyLogResponse.ApplyError, + "commandName": commandName, + }).Warnf(codes.SyncApplyError, "apply command") } }