Skip to content

Commit 24a518c

Browse files
committed
submitApi: simplify the cfg declaration
1 parent 42b534a commit 24a518c

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

cardano-lib/default.nix

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,14 @@ let
133133
mkSubmitApiConfig = name: nodeConfig: (filterAttrs (k: v: v != null) {
134134
GenesisHash = nodeConfig.ByronGenesisHash;
135135
inherit (nodeConfig) RequiresNetworkMagic;
136-
TraceOptions = builtins.listToAttrs [
137-
{ name = "";
138-
value = {
139-
backends = [
140-
"EKGBackend"
141-
"Stdout HumanFormatColoured"
142-
];
143-
detail = "DNormal";
144-
severity = "Info";
145-
};
146-
}
147-
];
136+
TraceOptions."" = {
137+
backends = [
138+
"EKGBackend"
139+
"Stdout HumanFormatColoured"
140+
];
141+
detail = "DNormal";
142+
severity = "Info";
143+
};
148144
})
149145
// defaultExplorerLogConfig;
150146

0 commit comments

Comments
 (0)