forked from grafana/grizzly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug logging for most commands (grafana#188)
* Add debug logging for most commands While debugging a failing apply, I thought some debug logging would be helpful This is very verbose for normal usecases so I also added a `--log-level` option to all commands to toggle the debug logging * Add missing formatting * Move down the logging initialize to workflow.go
- Loading branch information
1 parent
98137a8
commit 46e33f4
Showing
6 changed files
with
80 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
package grizzly | ||
|
||
// Opts contains options for all Grizzly commands | ||
// LoggingOpts contains logging options (used in all commands) | ||
type LoggingOpts struct { | ||
LogLevel string | ||
} | ||
|
||
// Opts contains options for most Grizzly commands | ||
type Opts struct { | ||
LoggingOpts | ||
Directory bool | ||
JsonnetPaths []string | ||
Targets []string | ||
} | ||
|
||
// PreviewOpts Options to Configure a Preview | ||
// PreviewOpts contains options to configure a preview | ||
type PreviewOpts struct { | ||
ExpiresSeconds int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.