| Message ID | 20251217-bbsetup-logger-v1-1-6bc7d02c11c6@bootlin.com |
|---|---|
| State | New |
| Headers | show |
| Series | bitbake-setup: convert print calls to logger | expand |
diff --git a/bin/bitbake-setup b/bin/bitbake-setup index b1d7518994..1d93ed05c1 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -935,7 +935,6 @@ def main(): args = parser.parse_args() - logging.basicConfig(stream=sys.stdout) if args.debug: logger.setLevel(logging.DEBUG) elif args.quiet:
Right now if we leave this and use the existing logger (redefined below with bb.msg.logger_create), we get all of the outputs twice. Example with an existing print call converted to logger.error(): $ bitbake-setup status --setup-dir whatever ERROR: Not a valid setup directory: build/init-build-env does not exist in whatever ERROR:bitbake-setup:Not a valid setup directory: build/init-build-env does not exist in whatever Remove the call to logging.basicConfig to avoid this. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- bin/bitbake-setup | 1 - 1 file changed, 1 deletion(-)