Skip to content

Commit 814bdcd

Browse files
committed
Log subconnection skips
1 parent c9b48f6 commit 814bdcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/connection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,11 +3467,13 @@ class Connection {
34673467

34683468
if (this.isGmail && accountPaths.includes('*') && !['\\Trash', '\\Junk'].includes(entry.specialUse)) {
34693469
// no need to check this folder, as \All already covers it
3470+
this.logger.info({ msg: 'Skip subconnection', path, reason: 'Covered by the All Mail folder' });
34703471
continue;
34713472
}
34723473

34733474
if (!this.isGmail && accountPaths.includes('*') && entry.specialUse === '\\Inbox') {
34743475
// already the default
3476+
this.logger.info({ msg: 'Skip subconnection', path, reason: 'Trying to use the default folder' });
34753477
continue;
34763478
}
34773479

0 commit comments

Comments
 (0)