Use configured logger output

parent af7a1978
......@@ -18,6 +18,7 @@ import (
"gitlab.techcultivation.org/sangha/payment-processors/paypal/resources/payments"
"gitlab.techcultivation.org/sangha/sangha/config"
"gitlab.techcultivation.org/sangha/sangha/db"
"gitlab.techcultivation.org/sangha/sangha/logger"
)
func handleSignals() (chan int, bool) {
......@@ -152,6 +153,12 @@ func main() {
ch, shutdownGracefully := handleSignals()
config.ParseSettings()
logger.SetupLogger(config.Settings.Connections.Logger.Protocol,
config.Settings.Connections.Logger.Address,
"paypal-processor")
log.Infoln("Starting payment paypal processor")
db.SetupPostgres(config.Settings.Connections.PostgreSQL)
mq.SetupAMQP(config.Settings.Connections.AMQP)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment