Skip to content

Commit

Permalink
Merge pull request #38 from cybozu-go/refactoring
Browse files Browse the repository at this point in the history
Refactor MantleBackup reconciler
  • Loading branch information
ushitora-anqou authored Sep 18, 2024
2 parents ced1d71 + e47ba6e commit 031a953
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 187 deletions.
4 changes: 2 additions & 2 deletions internal/controller/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"os"
)

var logger *slog.Logger
var gLogger *slog.Logger

func init() {
hostname, err := os.Hostname()
if err != nil {
panic(err)
}

logger = slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
gLogger = slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
switch a.Key {
case slog.TimeKey:
Expand Down
Loading

0 comments on commit 031a953

Please sign in to comment.