From: Daira Hopwood Date: Tue, 22 Sep 2015 15:13:49 +0000 (+0100) Subject: Include client nickname in magic folder log messages. X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=3c11f170fef26e912aad9190baa47a6e508b1503;p=tahoe-lafs%2Ftahoe-lafs.git Include client nickname in magic folder log messages. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 2569bf6d..5ea68bd8 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -16,7 +16,8 @@ from allmydata.util.fileutil import precondition_abspath, get_pathinfo from allmydata.util.assertutil import precondition from allmydata.util.deferredutil import HookMixin from allmydata.util.encodingutil import listdir_unicode, to_filepath, \ - unicode_from_filepath, quote_local_unicode_path, FilenameEncodingError + unicode_from_filepath, quote_local_unicode_path, quote_output, \ + FilenameEncodingError from allmydata.immutable.upload import FileName, Data from allmydata import backupdb, magicpath @@ -130,7 +131,7 @@ class QueueMixin(HookMixin): self._client.stats_provider.count('magic_folder.%s.%s' % (self._name, counter_name), delta) def _log(self, msg): - s = "Magic Folder %s: %s" % (self._name, msg) + s = "Magic Folder %s %s: %s" % (quote_output(self._client.nickname), self._name, msg) self._client.log(s) print s #open("events", "ab+").write(msg)