diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-10 10:12:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-10 23:48:55 +0000 |
commit | 0b9711efcbcf5c7e1e5386441757edf92ef81b40 (patch) | |
tree | ea55c56aef9503e478795f1482c74e497e164772 /meta/lib/oe | |
parent | 7f4d05758593f3947ecff7df45f56b335e3964e9 (diff) | |
download | poky-0b9711efcbcf5c7e1e5386441757edf92ef81b40.tar.gz |
Fix up bitbake logging compatibility
Bitbake changed the debug() logging call to make it compatible with
standard python logging by no longer including a debug level as the
first argument. Fix up the few places this was being used.
Tweaked version of a patch from Joshua Watt.
(From OE-Core rev: 5aecb6df67b876aa12eec54998f209d084579599)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/terminal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index eb10a6e33e..61c2687ef4 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py | |||
@@ -185,7 +185,7 @@ class Custom(Terminal): | |||
185 | Terminal.__init__(self, sh_cmd, title, env, d) | 185 | Terminal.__init__(self, sh_cmd, title, env, d) |
186 | logger.warning('Custom terminal was started.') | 186 | logger.warning('Custom terminal was started.') |
187 | else: | 187 | else: |
188 | logger.debug(1, 'No custom terminal (OE_TERMINAL_CUSTOMCMD) set') | 188 | logger.debug('No custom terminal (OE_TERMINAL_CUSTOMCMD) set') |
189 | raise UnsupportedTerminal('OE_TERMINAL_CUSTOMCMD not set') | 189 | raise UnsupportedTerminal('OE_TERMINAL_CUSTOMCMD not set') |
190 | 190 | ||
191 | 191 | ||
@@ -216,7 +216,7 @@ def spawn_preferred(sh_cmd, title=None, env=None, d=None): | |||
216 | 216 | ||
217 | def spawn(name, sh_cmd, title=None, env=None, d=None): | 217 | def spawn(name, sh_cmd, title=None, env=None, d=None): |
218 | """Spawn the specified terminal, by name""" | 218 | """Spawn the specified terminal, by name""" |
219 | logger.debug(1, 'Attempting to spawn terminal "%s"', name) | 219 | logger.debug('Attempting to spawn terminal "%s"', name) |
220 | try: | 220 | try: |
221 | terminal = Registry.registry[name] | 221 | terminal = Registry.registry[name] |
222 | except KeyError: | 222 | except KeyError: |