Fix the http port used not in sync with what is logged (#766)
* Fix the http port used not in sync with what is logged * Actually fix the logging race condition * Move the router logging to the router package
This commit is contained in:
10
main.go
10
main.go
@@ -103,11 +103,6 @@ func main() {
|
||||
log.Exit(0)
|
||||
}
|
||||
|
||||
// starts the core
|
||||
if err := core.Start(); err != nil {
|
||||
log.Fatalln("failed to start the core package", err)
|
||||
}
|
||||
|
||||
// Set the web server port
|
||||
if *webServerPortOverride != "" {
|
||||
portNumber, err := strconv.Atoi(*webServerPortOverride)
|
||||
@@ -121,6 +116,11 @@ func main() {
|
||||
config.WebServerPort = data.GetHTTPPortNumber()
|
||||
}
|
||||
|
||||
// starts the core
|
||||
if err := core.Start(); err != nil {
|
||||
log.Fatalln("failed to start the core package", err)
|
||||
}
|
||||
|
||||
if err := router.Start(); err != nil {
|
||||
log.Fatalln("failed to start/run the router", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user