Engine: optional environment variable 'Logging' in 'serveapi'

This commit is contained in:
Solomon Hykes
2013-10-27 07:06:43 +00:00
parent 4e7cb37dcc
commit 02ddaad5d9
2 changed files with 5 additions and 2 deletions

View File

@@ -86,7 +86,9 @@ func main() {
log.Fatal(err)
}
// Serve api
if err := eng.Job("serveapi", flHosts...).Run(); err != nil {
job := eng.Job("serveapi", flHosts...)
job.Setenv("Logging", true)
if err := job.Run(); err != nil {
log.Fatal(err)
}
} else {