diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-07-30 13:11:46 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-02 17:05:06 +0100 |
commit | f1417a1349e609d6a4886aed2704beabf150fbb9 (patch) | |
tree | d66b4b2a2ea3288e94db060915c2957a4351a32f /bitbake | |
parent | 9fb5c347503947c30d05c3a50d466cfb414db38d (diff) | |
download | poky-f1417a1349e609d6a4886aed2704beabf150fbb9.tar.gz |
bitbake: knotty: ensure that directory for BB_CONSOLELOG exists before using it
(Bitbake rev: 1e06d8012868ba5a31503dc99cbf18570be629d9)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 01674169ec..9f51823912 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -119,6 +119,7 @@ def main(server, eventHandler, tf = TerminalFilter): | |||
119 | console.setFormatter(format) | 119 | console.setFormatter(format) |
120 | logger.addHandler(console) | 120 | logger.addHandler(console) |
121 | if consolelogfile: | 121 | if consolelogfile: |
122 | bb.utils.mkdirhier(os.path.dirname(consolelogfile)) | ||
122 | consolelog = logging.FileHandler(consolelogfile) | 123 | consolelog = logging.FileHandler(consolelogfile) |
123 | bb.msg.addDefaultlogFilter(consolelog) | 124 | bb.msg.addDefaultlogFilter(consolelog) |
124 | consolelog.setFormatter(format) | 125 | consolelog.setFormatter(format) |