diff options
author | Paul Gortmaker <paulg@kernel.org> | 2024-02-17 19:51:06 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-19 11:58:12 +0000 |
commit | 324c9fd666117afb0dd689eaa8551bb02d6a042b (patch) | |
tree | a5a1237599560aeb1babe0d938e811ae7f2a945c | |
parent | fd600728ffd8b9b61353f12e341be5b0f7d58e84 (diff) | |
download | poky-324c9fd666117afb0dd689eaa8551bb02d6a042b.tar.gz |
bitbake: hashserv: improve the loglevel error message to be more helpful
Coming from a kernel background, I was thinking along the lines of
dmesg -n <integer>
for loglevel adjustments. So I tried various large and small and
even zero number values with no luck before getting frustrated and
opening up the python.
Let us save others the frustration and give a hint what the args it
expects should look like.
(Bitbake rev: df184b2a4e80fca847cfe90644110b74a1af613e)
Signed-off-by: Paul Gortmaker <paulg@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-hashserv | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-hashserv b/bitbake/bin/bitbake-hashserv index c913c4e3c8..4bfb7abfbc 100755 --- a/bitbake/bin/bitbake-hashserv +++ b/bitbake/bin/bitbake-hashserv | |||
@@ -132,7 +132,7 @@ The following permissions are supported by the server: | |||
132 | 132 | ||
133 | level = getattr(logging, args.log.upper(), None) | 133 | level = getattr(logging, args.log.upper(), None) |
134 | if not isinstance(level, int): | 134 | if not isinstance(level, int): |
135 | raise ValueError("Invalid log level: %s" % args.log) | 135 | raise ValueError("Invalid log level: %s (Try ERROR/WARNING/INFO/DEBUG)" % args.log) |
136 | 136 | ||
137 | logger.setLevel(level) | 137 | logger.setLevel(level) |
138 | console = logging.StreamHandler() | 138 | console = logging.StreamHandler() |