generated from PenaSide/GolangTemplate
fix: fail if no telegram token provided
This commit is contained in:
parent
eaef552aa6
commit
c76a8f5b38
@ -49,6 +49,7 @@ services:
|
||||
- ADMIN_FRONT_URL=https://sadmin.pena
|
||||
- TRASH_LOG_HOST=10.8.0.15:7113
|
||||
- MODULE_LOGGER=customer-staging
|
||||
- NOTIFICATION_BOT_TOKEN=6414077478:AAFk03HezovLT2kO_i9OYswH8Weirsgp9GU
|
||||
ports:
|
||||
- 10.8.0.6:8067:8065
|
||||
- 10.8.0.6:8070:8066
|
||||
|
||||
@ -53,18 +53,6 @@ func Run(config *models.Config, logger *zap.Logger, build Build) (appErr error)
|
||||
panic(err)
|
||||
}
|
||||
|
||||
//telegrammLogger, err := zaptg.NewCore(ctx,
|
||||
// zap.InfoLevel,
|
||||
// "1408111289:AAHfWZRiBQRncb2gl2LtU8OeASjfJi4e8YE",
|
||||
// build.Version,
|
||||
// build.Commit,
|
||||
// build.BuildTime,
|
||||
// -1001256687920,
|
||||
//)
|
||||
//if err != nil {
|
||||
// panic(err)
|
||||
//}
|
||||
|
||||
loggerForHlog := logger.WithOptions(zap.WrapCore(func(core zapcore.Core) zapcore.Core {
|
||||
return zapcore.NewTee(core, clickHouseLogger)
|
||||
}), zap.AddCallerSkip(2))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user