mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05: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> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |