Add logging
This commit is contained in:
parent
48cb88c0ec
commit
dbb440eadf
@ -50,10 +50,13 @@ func main() {
|
|||||||
fmt.Printf("Error initialising sentry: %s", err.Error())
|
fmt.Printf("Error initialising sentry: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("Connecting to database...")
|
||||||
database.ConnectToDatabase()
|
database.ConnectToDatabase()
|
||||||
|
|
||||||
|
fmt.Println("Connecting to cache...")
|
||||||
cache.Instance = cache.NewCache()
|
cache.Instance = cache.NewCache()
|
||||||
|
|
||||||
|
fmt.Println("Initialising microservice clients...")
|
||||||
utils.ArchiverClient = archiverclient.NewArchiverClientWithTimeout(config.Conf.Bot.ObjectStore, time.Second*15, []byte(config.Conf.Bot.AesKey))
|
utils.ArchiverClient = archiverclient.NewArchiverClientWithTimeout(config.Conf.Bot.ObjectStore, time.Second*15, []byte(config.Conf.Bot.AesKey))
|
||||||
utils.SecureProxyClient = secureproxy.NewSecureProxy(config.Conf.SecureProxyUrl)
|
utils.SecureProxyClient = secureproxy.NewSecureProxy(config.Conf.SecureProxyUrl)
|
||||||
|
|
||||||
@ -65,6 +68,7 @@ func main() {
|
|||||||
request.RegisterHook(utils.ProxyHook)
|
request.RegisterHook(utils.ProxyHook)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("Connecting to Redis...")
|
||||||
redis.Client = redis.NewRedisClient()
|
redis.Client = redis.NewRedisClient()
|
||||||
go ListenChat(redis.Client)
|
go ListenChat(redis.Client)
|
||||||
|
|
||||||
@ -80,6 +84,7 @@ func main() {
|
|||||||
rpc.PremiumClient = &c
|
rpc.PremiumClient = &c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("Starting server...")
|
||||||
app.StartServer()
|
app.StartServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user