Skip to content

Commit

Permalink
Add new Misconfiguration log item to logs.yaml
Browse files Browse the repository at this point in the history
- Add the record accessor so it looks nice in the logs
  • Loading branch information
v0d1ch authored and ch1bo committed Mar 17, 2023
1 parent 05cac52 commit 0ed290d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions hydra-node/json-schemas/logs.yaml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion hydra-node/src/Hydra/Logging/Messages.hs
Expand Up @@ -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)
Expand Down

0 comments on commit 0ed290d

Please sign in to comment.