spinframework / spinframework/spin

Implement global flag `--verbose`

Open
#608 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/CLI good first issue
Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

The Hippo CLI implements a global verbosity flag that increases the level of log verbosity:

https://github.com/deislabs/hippo-cli/blob/67f6368fa39d296c3d1b11a93e43bc4c751cba6b/src/cli/mod.rs#L61

This is then passed to env_logger to determine how verbose the CLI should present logs to the user:

https://github.com/deislabs/hippo-cli/blob/67f6368fa39d296c3d1b11a93e43bc4c751cba6b/src/cli/mod.rs#L89

This makes it incredibly simple to debug underlying issues with reqwest or other underlying libraries that use Rust's logging subsystem.

I'd love if there was an equivalent flag for Spin.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Hippo CLI implementation in src/cli/mod.rs, especially the global flag and env_logger setup linked in the issue, with Spin's CLI entry point and current logging initialization. Done means Spin accepts a global --verbose flag and passes its setting to the Rust logging subsystem so underlying library logs become more verbose.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.