xmr-btc-swap/swap/src
bors[bot] 2f19222948
Merge #397
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>
2021-04-09 00:19:56 +00:00
..
asb Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
bin Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
bitcoin Point BDK to commit that fixes overflow error 2021-04-06 14:50:27 +10:00
cli Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
database Await 10 confirmations of lock tx in refund 2021-04-01 16:03:38 +11:00
monero Swap-id as file name for generated Monero wallet 2021-04-08 19:23:54 +10:00
network Remove connection handling from swap execution 2021-03-24 15:17:54 +11:00
protocol Swap-id as file name for generated Monero wallet 2021-04-08 19:23:54 +10:00
asb.rs Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
bitcoin.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
cli.rs Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
database.rs Save Alice's peer-id in the db for Bob 2021-04-01 16:06:48 +11:00
env.rs Safely abort swap if TxLock is not confirmed in a reasonable time 2021-03-30 11:13:09 +11:00
fs.rs Import anyhow::Result across the codebase 2021-02-22 13:26:56 +11:00
kraken.rs Make kraken module emit PriceUpdates instead of Rates 2021-04-06 16:16:56 +10:00
lib.rs Move asb tracing initializer to asb module 2021-04-08 10:51:54 +10:00
monero_ext.rs Upgrade to bdk 4.0 2021-02-19 15:18:37 +11:00
monero.rs Add a configurable spread to the ASB 2021-04-06 16:16:58 +10:00
network.rs Remove connection handling from swap execution 2021-03-24 15:17:54 +11:00
protocol.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
seed.rs Seed should neither be Clone nor Copy 2021-03-24 11:39:39 +11:00