From 0e97eb16731b0758a1948ad539bd2f42ceab01be Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Jul 12 2017 10:47:02 +0000 Subject: Report deprecation of config via logger Signed-off-by: Lubomír Sedlář --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 5893ce0..cf4a673 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -127,9 +127,9 @@ class cliClient(object): if self.config.has_option(self.name, 'kojiconfig'): kojiconfig = self.config.get(self.name, 'kojiconfig') koji_config_type = 'config' - warnings.warn( - 'kojiconfig is deprecated. Instead, kojiprofile should be used.', - DeprecationWarning) + self.log.warning( + 'Deprecation warning: kojiconfig is deprecated. Instead, ' + 'kojiprofile should be used.') # kojiprofile has higher priority to be used if both kojiconfig and # kojiprofile exist at same time.