fix: fail if no telegram token provided

This commit is contained in:
skeris 2024-07-22 16:12:00 +03:00
parent eaef552aa6
commit c76a8f5b38
2 changed files with 1 additions and 12 deletions

@ -49,6 +49,7 @@ services:
- ADMIN_FRONT_URL=https://sadmin.pena - ADMIN_FRONT_URL=https://sadmin.pena
- TRASH_LOG_HOST=10.8.0.15:7113 - TRASH_LOG_HOST=10.8.0.15:7113
- MODULE_LOGGER=customer-staging - MODULE_LOGGER=customer-staging
- NOTIFICATION_BOT_TOKEN=6414077478:AAFk03HezovLT2kO_i9OYswH8Weirsgp9GU
ports: ports:
- 10.8.0.6:8067:8065 - 10.8.0.6:8067:8065
- 10.8.0.6:8070:8066 - 10.8.0.6:8070:8066

@ -53,18 +53,6 @@ func Run(config *models.Config, logger *zap.Logger, build Build) (appErr error)
panic(err) 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 { loggerForHlog := logger.WithOptions(zap.WrapCore(func(core zapcore.Core) zapcore.Core {
return zapcore.NewTee(core, clickHouseLogger) return zapcore.NewTee(core, clickHouseLogger)
}), zap.AddCallerSkip(2)) }), zap.AddCallerSkip(2))