diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-07-26 19:12:48 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-07-26 19:12:48 -0700 |
commit | c03079ad08b8c6441a6b1bf2e032844aae679e08 (patch) | |
tree | bac74e4d293908b10872bd942b8de75b49c06e85 /sys/src/cmd/upas/fs | |
parent | ea98dafce5b5657cfd65a3a5210c46bcda367525 (diff) |
upasfs: make imap debug logging less noisy
The current logging prints a debug line for every
message in an inbox, which is unusably verbose.
This removes the prints for unchanged messages,
and adds a print for flag changes.
Diffstat (limited to 'sys/src/cmd/upas/fs')
-rw-r--r-- | sys/src/cmd/upas/fs/imap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/upas/fs/imap.c b/sys/src/cmd/upas/fs/imap.c index 975bca5de..a2f12b366 100644 --- a/sys/src/cmd/upas/fs/imap.c +++ b/sys/src/cmd/upas/fs/imap.c @@ -979,7 +979,6 @@ again: m->imapuid = strtoull(m->idxaux, 0, 0); c = vcmp(f[i].uid, m->imapuid); } - idprint(imap, "consider %U and %U -> %d\n", i<n? f[i].uid: 0, m? m->imapuid: 1, c); if(c < 0){ /* new message */ idprint(imap, "new: %U (%U)\n", f[i].uid, m? m->imapuid: 0); @@ -1006,8 +1005,10 @@ again: m->deleted = Disappear; ll = &m->next; }else{ - if((m->flags & ~Frecent) != (f[i].flags & ~Frecent)) + if((m->flags & ~Frecent) != (f[i].flags & ~Frecent)){ + idprint(imap, "modified: %d != %d\n", m->flags, f[i].flags); m->cstate |= Cmod; + } m->flags = f[i].flags; ll = &m->next; i++; |