Skip to content

Commit

Permalink
cfg.File -> cfg.Log.File
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Aug 23, 2017
1 parent 2ccd785 commit cd6dfbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions config.go
Expand Up @@ -9,8 +9,10 @@ type Config struct {
Cmd string `yaml:"cmd" json:"cmd"`
Cwd string `yaml:",omitempty" json:",omitempty"`
Env map[string]string `yaml:",omitempty" json:",omitempty"`
Log `yaml:",omitempty" json:",omitempty"`
Logger string `yaml:",omitempty" json:",omitempty"`
Log Log `yaml:",omitempty" json:",omitempty"`
StdErr Log `yaml:",omitempty" json:",omitempty"`
StdOut Log `yaml:",omitempty" json:",omitempty"`
Logger string `yaml:",omitempty" json:",omitempty"`
Pid `yaml:",omitempty" json:",omitempty"`
Require []string `yaml:",omitempty"`
User string `yaml:",omitempty" json:",omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion parser.go
Expand Up @@ -225,7 +225,7 @@ func ParseArgs(p Parser, fs *flag.FlagSet) (cfg *Config, err error) {

// if -l
if flags.Logfile != "" {
cfg.File = flags.Logfile
cfg.Log.File = flags.Logfile
}

// if -logger
Expand Down

0 comments on commit cd6dfbd

Please sign in to comment.