Skip to content

Commit 19687b7

Browse files
committed
fix: Fix logging empty ingress notifications
1 parent 02dee5f commit 19687b7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sources/ingressNotifiers/IngressNotifier.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ export abstract class IngressNotifier {
3737
notifs.push(`${!newRemote && requestNotif === undefined ? `${remoteHostStr(req)} ` : ''}${sourceNotif}`);
3838
}
3939

40-
if (requestNotif !== undefined || sourceValid === false) {
41-
this.logger.warn(notifs.join(' | '));
42-
} else {
43-
this.logger.info(notifs.join(' | '))
40+
if(notifs.length > 0) {
41+
if (requestNotif !== undefined || sourceValid === false) {
42+
this.logger.warn(notifs.join(' | '));
43+
} else {
44+
this.logger.info(notifs.join(' | '))
45+
}
4446
}
4547
}
4648

0 commit comments

Comments
 (0)