diff cli-auth.c @ 1937:334b742fdeb8

Fix -q to hide the banner Got lost merging the DEBUG/TRACE level patch
author Matt Johnston <matt@ucc.asn.au>
date Fri, 01 Apr 2022 14:33:27 +0800
parents 62e4baa059c3
children
line wrap: on
line diff
--- a/cli-auth.c	Fri Apr 01 14:13:52 2022 +0800
+++ b/cli-auth.c	Fri Apr 01 14:33:27 2022 +0800
@@ -82,6 +82,11 @@
 		return;
 	}
 
+	if (cli_opts.quiet) {
+		TRACE(("not showing banner"))
+		return;
+	}
+
 	banner = buf_getstring(ses.payload, &bannerlen);
 	buf_eatstring(ses.payload); /* The language string */