mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-11 23:03:53 +00:00
node.py: advise twistd.log readers about flogtool
This commit is contained in:
parent
69b86ebe9a
commit
af1e2a1e2f
@ -393,6 +393,10 @@ class Node(service.MultiService):
|
|||||||
|
|
||||||
incident_dir = os.path.join(self.basedir, "logs", "incidents")
|
incident_dir = os.path.join(self.basedir, "logs", "incidents")
|
||||||
foolscap.logging.log.setLogDir(incident_dir.encode(get_filesystem_encoding()))
|
foolscap.logging.log.setLogDir(incident_dir.encode(get_filesystem_encoding()))
|
||||||
|
twlog.msg("Foolscap logging initialized")
|
||||||
|
twlog.msg("Note to developers: twistd.log does not receive very much.")
|
||||||
|
twlog.msg("Use 'flogtool tail -c NODEDIR/private/logport.furl' instead")
|
||||||
|
twlog.msg("and read docs/logging.rst")
|
||||||
|
|
||||||
def log(self, *args, **kwargs):
|
def log(self, *args, **kwargs):
|
||||||
return log.msg(*args, **kwargs)
|
return log.msg(*args, **kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user