diff --git a/hydra-node/json-schemas/logs.yaml b/hydra-node/json-schemas/logs.yaml index 2d8dc450a62..a233f178b46 100644 --- a/hydra-node/json-schemas/logs.yaml +++ b/hydra-node/json-schemas/logs.yaml @@ -147,6 +147,21 @@ properties: type: string enum: ["LoadedState"] + - title: Misconfiguration + description: >- + Hydra node detected a difference between loaded state and the node arguments. + type: object + additionalProperties: false + required: + - tag + - misconfiguredItems + properties: + tag: + type: string + enum: ["Misconfiguration"] + misconfiguredItems: + type: array + definitions: APIServer: oneOf: diff --git a/hydra-node/src/Hydra/Logging/Messages.hs b/hydra-node/src/Hydra/Logging/Messages.hs index 807eb50d85d..27a1f253b2a 100644 --- a/hydra-node/src/Hydra/Logging/Messages.hs +++ b/hydra-node/src/Hydra/Logging/Messages.hs @@ -23,7 +23,7 @@ data HydraLog tx net | CreatedState | LoadedState | NodeOptions {runOptions :: RunOptions} - | Misconfiguration [String] + | Misconfiguration {misconfiguredItems :: [String]} deriving (Generic) deriving instance (Eq net, Eq (HydraNodeLog tx)) => Eq (HydraLog tx net)