Skip to content

Commit

Permalink
feat: updated the name of prettylogger
Browse files Browse the repository at this point in the history
Signed-off-by: Mihir Mittal <105881639+mihirm21@users.noreply.github.com>
  • Loading branch information
mihirm21 committed Jan 26, 2023
1 parent 5081d69 commit 970e546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
bearerTokenFlagName = "bearer-token"
corsFlagName = "cors-origin"
syncProviderFlagName = "sync-provider"
prettyLogFlagName = "prettylogger"
prettyLogFlagName = "log-format"
)

func init() {
Expand Down Expand Up @@ -56,8 +56,7 @@ func init() {
flags.StringP(
syncProviderFlagName, "y", "", "DEPRECATED: Set a sync provider e.g. filepath or remote",
)
flags.StringP(prettyLogFlagName, "z", "console", "Set a logger with console default "+
"can be changed to json format if required.")
flags.StringP(prettyLogFlagName, "z", "console", "Set the logging format, e.g. console or json ")

_ = viper.BindPFlag(portFlagName, flags.Lookup(portFlagName))
_ = viper.BindPFlag(metricsPortFlagName, flags.Lookup(metricsPortFlagName))
Expand Down
3 changes: 1 addition & 2 deletions pkg/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ type Config struct {
SyncURI []string
SyncBearerToken string

CORS []string
PrettyLog string
CORS []string
}

func (r *Runtime) Start() error {
Expand Down

0 comments on commit 970e546

Please sign in to comment.