Update <lightning> log tag to show the network if non mainnet

This commit is contained in:
nymkappa 2022-08-28 08:37:25 +02:00
parent f19978345e
commit a65d54c549
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -74,7 +74,7 @@ class Logger {
private getNetwork(): string {
if (config.LIGHTNING.ENABLED) {
return 'lightning';
return config.MEMPOOL.NETWORK === 'mainnet' ? 'lightning' : `${config.MEMPOOL.NETWORK}-lightning`;
}
if (config.BISQ.ENABLED) {
return 'bisq';