removing comment

This commit is contained in:
Julien Neuhart
2019-09-30 14:51:49 +02:00
parent 1b4c435900
commit f6729834b6

View File

@@ -27,11 +27,12 @@ func main() {
}
systemLogger.InfofOp(op, "Gotenberg %s", version)
systemLogger.DebugfOp(op, "configuration: %+v", config)
// start Google Chrome.
// TODO kill proc.
_, err = chrome.Start(context.Background(), systemLogger)
if err != nil {
systemLogger.FatalOp(op, err)
if !config.DisableGoogleChrome() {
// start Google Chrome.
_, err = chrome.Start(context.Background(), systemLogger)
if err != nil {
systemLogger.FatalOp(op, err)
}
}
// create our API.
srv := xhttp.New(config)