// init initializes all required packages and systems func init() { log.Start(log.LevelTrace) // Init mongo log.Started("main", "Initializing Mongo") err := mongo.Startup(helper.MainGoRoutine) if err != nil { log.CompletedError(err, helper.MainGoRoutine, "initTesting") return } // Load message strings localize.Init("en-US") }
// init initializes all required packages and systems func init() { tracelog.Start(tracelog.LEVEL_TRACE) // Init mongo tracelog.STARTED("main", "Initializing Mongo") err := mongo.Startup(helper.MAIN_GO_ROUTINE) if err != nil { tracelog.COMPLETED_ERROR(err, helper.MAIN_GO_ROUTINE, "initTesting") return } // Load message strings localize.Init("en-US") }
func main() { tracelog.Start(tracelog.LEVEL_TRACE) // Init mongo tracelog.Started("main", "Initializing Mongo") err := mongo.Startup(helper.MAIN_GO_ROUTINE) if err != nil { tracelog.CompletedError(err, helper.MAIN_GO_ROUTINE, "initApp") os.Exit(1) } // Load message strings localize.Init("en-US") beego.Run() tracelog.Completed(helper.MAIN_GO_ROUTINE, "Website Shutdown") tracelog.Stop() }
func main() { tracelog.Start(tracelog.LevelTrace) // Init mongo tracelog.Started("main", "Initializing Mongo") err := mongo.Startup(helper.MainGoRoutine) if err != nil { tracelog.CompletedError(err, helper.MainGoRoutine, "initApp") os.Exit(1) } // Load message strings localize.Init("en-US") beego.Run() tracelog.Completed(helper.MainGoRoutine, "Website Shutdown") tracelog.Stop() }