Skip to content

Commit

Permalink
chore: update deployment
Browse files Browse the repository at this point in the history
Signed-off-by: grouville <[email protected]>
  • Loading branch information
grouville committed Aug 10, 2023
1 parent 7aea822 commit 0ca8c5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export FLY_APP_NAME=dagger-registry-2023-07-28
export FLY_API_TOKEN="$(flyctl auth token)"
export GITHUB_REF_NAME=main
export SYSLOG_HOST=vector-2023-06-08.internal:514
4 changes: 2 additions & 2 deletions magefiles/dagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
golangciLintVersion = "1.53.3"

// https://hub.docker.com/r/flyio/flyctl/tags
flyctlVersion = "0.1.65"
flyctlVersion = "0.1.73"

appName = "dagger-registry-2023-07-28"
appImageRegistry = "registry.fly.io"
Expand All @@ -40,7 +40,7 @@ const (
Ashburn = "iad"

// https://fly.io/docs/reference/configuration/#picking-a-deployment-strategy
DeployStrategy = "rolling" // Required when MaxInstancesPerRegion set to 1
DeployStrategy = "bluegreen" // Required when MaxInstancesPerRegion set to 1
)

// golangci-lint
Expand Down
3 changes: 1 addition & 2 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ func NewLogger(ctx context.Context, cfg *Config) (context.Context, *syslogger.Sy
baseLogger = baseLogger.WithOptions(zap.WrapCore(func(core zapcore.Core) zapcore.Core {
// Create a new Core that writes to our SyslogWriter, uses JSON encoding, and has the same level as our original logger.
syslogCore := zapcore.NewCore(
// zapcore.NewConsoleEncoder(zap.NewProductionEncoderConfig()), // try this encoder, how does it behave ???
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()), // use JSON encoding
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()),

zapcore.AddSync(syslogWriter), // write to SyslogWriter
atomicLevel, // same level as the original logger
Expand Down

0 comments on commit 0ca8c5a

Please sign in to comment.