mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
2f19222948
397: Always log at debug level to file r=rishflab a=rishflab WILL SQUASH DOWN TO 3 COMMITS WHEN APPROVED! Log at debug level to file EnvFilter is applied globally. This means you cannot log at INFO level to the terminal and at DEBUG level to log files. To get a around this limitation I had to implement the layer trait on a new type and filter in the on_event() trait method. Each swap has its own log file denoted by its swap_id. The logger appends to the existing file when resuming a swap. Closes #278 I think the `DebugTerminalPritner` and `InfoTerminalPrinter` could be consolidated with some effort with some generics wizardry. It works for now and I think it can be done later. I wish in general there was a cleaner way to do this. Co-authored-by: rishflab <rishflab@hotmail.com> |
||
---|---|---|
.. | ||
asb | ||
bin | ||
bitcoin | ||
cli | ||
database | ||
monero | ||
network | ||
protocol | ||
asb.rs | ||
bitcoin.rs | ||
cli.rs | ||
database.rs | ||
env.rs | ||
fs.rs | ||
kraken.rs | ||
lib.rs | ||
monero_ext.rs | ||
monero.rs | ||
network.rs | ||
protocol.rs | ||
seed.rs |