Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/easeprobe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ func main() {

c, err := conf.New(yamlFile)
if err != nil {
log.Fatalln("Fatal: Cannot read the YAML configuration file!")
log.Errorln("Fatal: Cannot read the YAML configuration file!")
os.Exit(-1)
}

// Create the pid file if the file name is not empty
if len(strings.TrimSpace(c.Settings.PIDFile)) > 0 {
d, err := daemon.NewPIDFile(c.Settings.PIDFile)
if err != nil {
log.Fatalf("Fatal: Cannot create the PID file: %s!", err)
log.Errorf("Fatal: Cannot create the PID file: %s!", err)
os.Exit(-1)
}
log.Infof("Successfully created the PID file: %s", d.PIDFile)
Expand Down