From 340bdc7a510c7699616e9a66f724a39921710125 Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 2 Apr 2013 19:42:16 +0400 Subject: [PATCH] Add other self.pl proxies --- powerline/lib/threaded.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/powerline/lib/threaded.py b/powerline/lib/threaded.py index 2b311189..7ceea797 100644 --- a/powerline/lib/threaded.py +++ b/powerline/lib/threaded.py @@ -116,6 +116,15 @@ class ThreadedSegment(MultiRunnedThread): if not self.is_alive(): self.start() + def critical(self, *args, **kwargs): + self.pl.critical(prefix=self.__class__.__name__, *args, **kwargs) + + def exception(self, *args, **kwargs): + self.pl.exception(prefix=self.__class__.__name__, *args, **kwargs) + + def info(self, *args, **kwargs): + self.pl.info(prefix=self.__class__.__name__, *args, **kwargs) + def error(self, *args, **kwargs): self.pl.error(prefix=self.__class__.__name__, *args, **kwargs)