Skip to content

Commit ccbcbce

Browse files
authored
fix(cli): improve cli help output and otel logging (#512)
Signed-off-by: SequeI <[email protected]>
1 parent a1d1b1a commit ccbcbce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/model_signing/_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def resolve_command(
223223
),
224224
default="INFO",
225225
show_default=True,
226+
metavar="LEVEL",
226227
help="Set the logging level. This can also be set via the "
227228
"MODEL_SIGNING_LOG_LEVEL env var.",
228229
)
@@ -246,7 +247,7 @@ def main(log_level: str) -> None:
246247
auto_instrumentation.initialize()
247248
tracer = trace.get_tracer(__name__)
248249
except ImportError:
249-
logging.info("OpenTelemetry not installed. Tracing is disabled.")
250+
logging.debug("OpenTelemetry not installed. Tracing is disabled.")
250251
tracer = NoOpTracer()
251252
except Exception as e:
252253
logging.error(

0 commit comments

Comments
 (0)