Skip to content

Commit 7cd5ebc

Browse files
committed
chore: move internal/log to pkg/log
1 parent b44f908 commit 7cd5ebc

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

cmd/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"log/slog"
66

7-
"github.com/ucpr/mongo-streamer/internal/log"
87
"github.com/ucpr/mongo-streamer/internal/pubsub"
8+
"github.com/ucpr/mongo-streamer/pkg/log"
99
)
1010

1111
type EventHandler struct {

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"syscall"
1010
"time"
1111

12-
"github.com/ucpr/mongo-streamer/internal/log"
12+
"github.com/ucpr/mongo-streamer/pkg/log"
1313
)
1414

1515
var (

cmd/streamer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"time"
66

77
"github.com/ucpr/mongo-streamer/internal/config"
8-
"github.com/ucpr/mongo-streamer/internal/log"
98
"github.com/ucpr/mongo-streamer/internal/mongo"
109
"github.com/ucpr/mongo-streamer/internal/persistent"
10+
"github.com/ucpr/mongo-streamer/pkg/log"
1111
)
1212

1313
type Streamer struct {

internal/http/health.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package http
33
import (
44
"net/http"
55

6-
"github.com/ucpr/mongo-streamer/internal/log"
6+
"github.com/ucpr/mongo-streamer/pkg/log"
77
)
88

99
func health(w http.ResponseWriter, r *http.Request) {

internal/mongo/change_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"go.mongodb.org/mongo-driver/mongo"
1010
"go.mongodb.org/mongo-driver/mongo/options"
1111

12-
"github.com/ucpr/mongo-streamer/internal/log"
1312
mmetric "github.com/ucpr/mongo-streamer/internal/metric/mongo"
1413
"github.com/ucpr/mongo-streamer/internal/persistent"
14+
"github.com/ucpr/mongo-streamer/pkg/log"
1515
)
1616

1717
type (

internal/persistent/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"log/slog"
66

7-
"github.com/ucpr/mongo-streamer/internal/log"
7+
"github.com/ucpr/mongo-streamer/pkg/log"
88
)
99

1010
// Log is a writer that writes to the log.

internal/persistent/persistent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync"
66
"time"
77

8-
"github.com/ucpr/mongo-streamer/internal/log"
8+
"github.com/ucpr/mongo-streamer/pkg/log"
99
)
1010

1111
const (
File renamed without changes.

0 commit comments

Comments
 (0)