Merge pull request #2416 from mempool/nymkappa/feature/ln-logger-tag

Update <lightning> log tag to show the network if non mainnet
This commit is contained in:
wiz 2022-08-28 17:06:46 +02:00 committed by GitHub
commit 6d027dd7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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';