Skip to content

Commit

Permalink
chore: remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
javascriptizer1 committed Jun 14, 2024
1 parent a707ccc commit 4461c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions service/auth/internal/config/config.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package config

import (
"log"
"net"
"strconv"
"time"

"github.com/ilyakaznacheev/cleanenv"
"github.com/javascriptizer1/grpc-cli-chat.backend/service/auth/internal/logger"
"github.com/joho/godotenv"
"go.uber.org/zap"
)

type Config struct {
Expand Down Expand Up @@ -57,7 +58,7 @@ func MustLoad() *Config {
err := godotenv.Load()

if err != nil {
log.Printf("Error loading .env file: %v", err)
logger.Warn("No loading .env file", zap.Error(err))
}

var cfg Config
Expand Down
4 changes: 0 additions & 4 deletions service/auth/internal/logger/logger.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package logger

import (
"fmt"
"os"

"go.uber.org/zap"
Expand Down Expand Up @@ -33,9 +32,6 @@ func Init(env string) {
zapcore.Lock(os.Stdout),
atomic,
))

fmt.Println("globalLogger")
fmt.Println(globalLogger)
}

func Debug(msg string, fields ...zap.Field) {
Expand Down

0 comments on commit 4461c1a

Please sign in to comment.