aboutsummaryrefslogtreecommitdiffstats
path: root/bin/bitbake-hashserv
diff options
context:
space:
mode:
authorPaul Gortmaker <paulg@kernel.org>2024-02-17 19:51:06 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-19 11:53:15 +0000
commitdf184b2a4e80fca847cfe90644110b74a1af613e (patch)
treec21d35b154d1ec35afa409468b2efa86ba488776 /bin/bitbake-hashserv
parentf49bec66ad51c8cddeceafbbe2445c46e396ee8b (diff)
downloadbitbake-df184b2a4e80fca847cfe90644110b74a1af613e.tar.gz
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. Signed-off-by: Paul Gortmaker <paulg@kernel.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake-hashserv')
-rwxr-xr-xbin/bitbake-hashserv2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bitbake-hashserv b/bin/bitbake-hashserv
index c913c4e3c..4bfb7abfb 100755
--- a/bin/bitbake-hashserv
+++ b/bin/bitbake-hashserv
@@ -132,7 +132,7 @@ The following permissions are supported by the server:
level = getattr(logging, args.log.upper(), None)
if not isinstance(level, int):
- raise ValueError("Invalid log level: %s" % args.log)
+ raise ValueError("Invalid log level: %s (Try ERROR/WARNING/INFO/DEBUG)" % args.log)
logger.setLevel(level)
console = logging.StreamHandler()