We have some error messages that we neither want to hide totally under DEBUG level nor print several times per second. Some examples in mempool:
InputBuffer is not yet initialized during sync after start and evicts any received ext_in msgs
network error on sending broadcasts to resolved but disconnected peer
Add global map in tycho_utils that stores formatted strings for tracing outputs for some duration from node config. On first insert, log is printed. Same string should appear in log again only after duration passes. Map should not store messages for disabled log levels.
It's ok that map should be used with care to store only repeatable messages.
We have some error messages that we neither want to hide totally under
DEBUG
level nor print several times per second. Some examples in mempool:InputBuffer
is not yet initialized during sync after start and evicts any received ext_in msgsAdd global map in
tycho_utils
that stores formatted strings for tracing outputs for some duration from node config. On first insert, log is printed. Same string should appear in log again only after duration passes. Map should not store messages for disabled log levels.It's ok that map should be used with care to store only repeatable messages.