summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/MaildirIndexer/Store.rakumod3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MaildirIndexer/Store.rakumod b/lib/MaildirIndexer/Store.rakumod
index 66ec086..02ffa1d 100644
--- a/lib/MaildirIndexer/Store.rakumod
+++ b/lib/MaildirIndexer/Store.rakumod
@@ -19,8 +19,8 @@ method dump(--> Nil) {
method start(--> Nil) {
for ^$.workers {
start react {
- CATCH { warn .gist };
whenever $.file-channel -> $file {
+ CATCH { warn "looking at $file\n"; warn .gist };
when $file ~~ MaildirIndexer::ScanDir::End {
MaildirIndexer::LogTimelineSchema::Scan::End.log();
}
@@ -42,7 +42,6 @@ method start(--> Nil) {
method add-file(IO:D $file --> Nil) {
my Str $mailbox = mailbox-from-path($file.path) or return;
my MaildirIndexer::Email $email = parse-email($file,:headers-only) or return;
- CATCH { warn .gist; return };
$!lock.protect: {
.add-mail($email,$mailbox) for @!indices;
}