diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-11-09 14:18:20 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-11-14 13:03:51 +0000 |
commit | 1ef8e3f39238f65d59f93898375c0fb638a19fc5 (patch) | |
tree | 948f34b608cce8e4dc896c5ff59fdc327fae3918 /buildstream/plugin.py | |
parent | 8ad1a968e9798955e57e11ff7930f4459bbc560c (diff) | |
download | buildstream-1ef8e3f39238f65d59f93898375c0fb638a19fc5.tar.gz |
plugin.py: Make the logging methods use keyword args
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r-- | buildstream/plugin.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py index 16b782e09..ea445fa5d 100644 --- a/buildstream/plugin.py +++ b/buildstream/plugin.py @@ -365,7 +365,7 @@ class Plugin(): raise ImplError("{tag} plugin '{kind}' does not implement get_unique_key()".format( tag=self.__type_tag, kind=self.get_kind())) - def debug(self, brief, detail=None): + def debug(self, brief, *, detail=None): """Print a debugging message Args: @@ -375,7 +375,7 @@ class Plugin(): if self.__context.log_debug: self.__message(MessageType.DEBUG, brief, detail=detail) - def status(self, brief, detail=None): + def status(self, brief, *, detail=None): """Print a status message Args: @@ -386,7 +386,7 @@ class Plugin(): """ self.__message(MessageType.STATUS, brief, detail=detail) - def info(self, brief, detail=None): + def info(self, brief, *, detail=None): """Print an informative message Args: @@ -398,7 +398,7 @@ class Plugin(): """ self.__message(MessageType.INFO, brief, detail=detail) - def warn(self, brief, detail=None): + def warn(self, brief, *, detail=None): """Print a warning message Args: @@ -407,7 +407,7 @@ class Plugin(): """ self.__message(MessageType.WARN, brief, detail=detail) - def error(self, brief, detail=None): + def error(self, brief, *, detail=None): """Print an error message Args: |