Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Change from warning to fatal
Browse files Browse the repository at this point in the history
Signed-off-by: Morgan Tocker <tocker@gmail.com>
  • Loading branch information
morgo committed Jan 15, 2020
1 parent b322579 commit 89e396d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions go/vt/mysqlctl/mysqld.go
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,9 @@ func (mysqld *Mysqld) getMycnfTemplate() string {
if *mycnfTemplateFile != "" {
data, err := ioutil.ReadFile(*mycnfTemplateFile)
if err != nil {
log.Warningf("template file could not be read, using default template instead: %v", *mycnfTemplateFile) // continue to default
} else {
return string(data) // use only specified template
log.Fatalf("mycnf template file could not be read: %v", *mycnfTemplateFile)
}
return string(data) // use only specified template
}
myTemplateSource := new(bytes.Buffer)
myTemplateSource.WriteString("[mysqld]\n")
Expand Down

0 comments on commit 89e396d

Please sign in to comment.