mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-10 11:32:48 +02:00
19 lines
362 B
Go
19 lines
362 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/astaxie/beego"
|
|
_ "github.com/deluan/gosonic/conf"
|
|
_ "github.com/deluan/gosonic/tasks"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Printf("\nGoSonic v%s (%s mode)\n\n", "0.1", beego.BConfig.RunMode)
|
|
if beego.BConfig.RunMode == "prod" {
|
|
beego.SetLevel(beego.LevelInformational)
|
|
}
|
|
//beego.BConfig.Log.FileLineNum = false
|
|
beego.Run()
|
|
}
|