From 1f254fbdcc0f4ce4904b974d5b5d59b8fc4152c4 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 20 Mar 2019 16:17:55 -0400 Subject: [PATCH] log the unicode instead of the localized byte string --- src/allmydata/util/fake_inotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/util/fake_inotify.py b/src/allmydata/util/fake_inotify.py index 45d360105..284711c52 100644 --- a/src/allmydata/util/fake_inotify.py +++ b/src/allmydata/util/fake_inotify.py @@ -91,7 +91,7 @@ class INotify(object): self.callbacks = callbacks def event(self, filepath, mask): - with start_action(action_type=u"fake-inotify:event", path=filepath.path, mask=mask): + with start_action(action_type=u"fake-inotify:event", path=filepath.asTextMode().path, mask=mask): for cb in self.callbacks: cb(None, filepath, mask)