Skip to content

Commit 311fc5e

Browse files
committed
genericLog: write tracers condensed w/ sorting; add UTXO-HD silences
1 parent 6c184c8 commit 311fc5e

File tree

1 file changed

+40
-112
lines changed

1 file changed

+40
-112
lines changed

cardano-lib/generic-log-config.nix

Lines changed: 40 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -84,118 +84,46 @@
8484

8585
# The following tracer configurations are configured to closely match the
8686
# default logging seen in the legacy cardano-node tracing system.
87-
"BlockFetch.Decision" = {
88-
severity = "Silence";
89-
};
90-
91-
"ChainDB" = {
92-
severity = "Info";
93-
};
94-
95-
"ChainDB.AddBlockEvent.AddBlockValidation" = {
96-
severity = "Silence";
97-
};
98-
99-
"ChainSync.Client" = {
100-
severity = "Warning";
101-
};
102-
103-
"Net.ConnectionManager.Remote" = {
104-
severity = "Info";
105-
};
106-
107-
"Net.Subscription.DNS" = {
108-
severity = "Info";
109-
};
110-
111-
"Startup.DiffusionInit" = {
112-
severity = "Info";
113-
};
114-
115-
"Net.ErrorPolicy" = {
116-
severity = "Info";
117-
};
118-
119-
"Forge.Loop" = {
120-
severity = "Info";
121-
};
122-
123-
"Forge.StateInfo" = {
124-
severity = "Info";
125-
};
126-
127-
"Net.InboundGovernor.Remote" = {
128-
severity = "Info";
129-
};
130-
131-
"Net.Subscription.IP" = {
132-
severity = "Info";
133-
};
134-
135-
"Net.ErrorPolicy.Local" = {
136-
severity = "Info";
137-
};
138-
139-
"Mempool" = {
140-
severity = "Info";
141-
};
142-
143-
"Net.Mux.Remote" = {
144-
severity = "Info";
145-
};
146-
147-
"Net.InboundGovernor" = {
148-
severity = "Warning";
149-
};
150-
151-
"Net.PeerSelection" = {
152-
severity = "Silence";
153-
};
154-
155-
"Net.ConnectionManager.Remote.ConnectionManagerCounters" = {
156-
severity = "Silence";
157-
};
158-
159-
"Resources" = {
160-
severity = "Silence";
161-
};
162-
163-
"ChainDB.AddBlockEvent.AddedBlockToQueue" = {
164-
# A frequency limit for the number of messages per second may also be
165-
# provided for any tracer.
166-
maxFrequency = 2.0;
167-
};
168-
169-
"ChainDB.AddBlockEvent.AddedBlockToVolatileDB" = {
170-
maxFrequency = 2.0;
171-
};
172-
173-
"ChainDB.AddBlockEvent.AddBlockValidation.ValidCandidate" = {
174-
maxFrequency = 2.0;
175-
};
176-
177-
"ChainDB.CopyToImmutableDBEvent.CopiedBlockToImmutableDB" = {
178-
maxFrequency = 2.0;
179-
};
180-
181-
"BlockFetch.Client.CompletedBlockFetch" = {
182-
maxFrequency = 2.0;
183-
};
184-
185-
# Uncomment UTXO-HD tracer adjustments once UTXO-HD is released.
186-
#
187-
# These messages are UTxO-HD specific. On a regular node, the tracing
188-
# system might warn at startup about config inconsistencies as those
189-
# tracers do not exist. This warning is expected, and can be safely
190-
# ignored. Silencing the tracers below aims at having a comparable log line
191-
# rates in messages per second on both the UTxO-HD and regular node.
192-
# "ChainDB.LedgerEvent.Forker".severity = "Silence";
193-
# "Mempool.AttemptAdd".severity = "Silence";
194-
# "Mempool.AttemptingSync".severity = "Silence";
195-
# "Mempool.LedgerFound".severity = "Silence";
196-
# "Mempool.LedgerNotFound".severity = "Silence";
197-
# "Mempool.SyncDone".severity = "Silence";
198-
# "Mempool.SyncNotNeeded".severity = "Silence";
87+
"BlockFetch.Decision".severity = "Silence";
88+
"ChainDB.AddBlockEvent.AddBlockValidation".severity = "Silence";
89+
"ChainDB".severity = "Info";
90+
"ChainSync.Client".severity = "Warning";
91+
"Forge.Loop".severity = "Info";
92+
"Forge.StateInfo".severity = "Info";
93+
"Mempool".severity = "Info";
94+
"Net.ConnectionManager.Remote.ConnectionManagerCounters".severity = "Silence";
95+
"Net.ConnectionManager.Remote".severity = "Info";
96+
"Net.ErrorPolicy.Local".severity = "Info";
97+
"Net.ErrorPolicy".severity = "Info";
98+
"Net.InboundGovernor.Remote".severity = "Info";
99+
"Net.InboundGovernor".severity = "Warning";
100+
"Net.Mux.Remote".severity = "Info";
101+
"Net.PeerSelection".severity = "Silence";
102+
"Net.Subscription.DNS".severity = "Info";
103+
"Net.Subscription.IP".severity = "Info";
104+
"Resources".severity = "Silence";
105+
"Startup.DiffusionInit".severity = "Info";
106+
107+
# A frequency limit for the number of messages per second may also be
108+
# provided for any tracer.
109+
"BlockFetch.Client.CompletedBlockFetch".maxFrequency = 2.0;
110+
"ChainDB.AddBlockEvent.AddBlockValidation.ValidCandidate".maxFrequency = 2.0;
111+
"ChainDB.AddBlockEvent.AddedBlockToQueue".maxFrequency = 2.0;
112+
"ChainDB.AddBlockEvent.AddedBlockToVolatileDB".maxFrequency = 2.0;
113+
"ChainDB.CopyToImmutableDBEvent.CopiedBlockToImmutableDB".maxFrequency = 2.0;
114+
115+
# The following messages are UTxO-HD specific. Silencing these tracers aims
116+
# at having comparable log line rates in messages per second on both the
117+
# UTxO-HD and earlier non-UTxO-HD nodes. The additional high granularity
118+
# mempool silences are not redundant in the case that the top level Mempool
119+
# severity is switched away from silence.
120+
"ChainDB.LedgerEvent.Forker".severity = "Silence";
121+
"Mempool.AttemptAdd".severity = "Silence";
122+
"Mempool.AttemptingSync".severity = "Silence";
123+
"Mempool.LedgerFound".severity = "Silence";
124+
"Mempool.LedgerNotFound".severity = "Silence";
125+
"Mempool.SyncDone".severity = "Silence";
126+
"Mempool.SyncNotNeeded".severity = "Silence";
199127

200128
# Enable this to investigate transaction validation errors.
201129
# "Mempool.RejectedTx".detail = "DDetailed";

0 commit comments

Comments
 (0)