Skip to content

Commit d946a84

Browse files
committed
Update to use reconnect logger
1 parent 357120e commit d946a84

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ require (
4141
github.com/picosh/pubsub v0.0.0-20241114191831-ec8f16c0eb88
4242
github.com/picosh/send v0.0.0-20241107150437-0febb0049b4f
4343
github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9
44-
github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605
44+
github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8
4545
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
4646
github.com/sendgrid/sendgrid-go v3.16.0+incompatible
4747
github.com/simplesurance/go-ip-anonymizer v0.0.0-20200429124537-35a880f8e87d

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9 h1:g5oZmnDFr11HarA8I
279279
github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9/go.mod h1:UrDH/VCIc1wg/L6iY2zSYt4TiGw+25GsKSnkVkU40Dw=
280280
github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605 h1:A9yRvOupUH9gxGJ/r+4x2RL2uZVEf2Am2AfiLrAfaTg=
281281
github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
282+
github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8 h1:3uaXGZr8Or53Eq13F9fsbi1F/tmxcWEFboZeEphYpyE=
283+
github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
282284
github.com/pkg/sftp v1.13.7 h1:uv+I3nNJvlKZIQGSr8JVQLNHFU9YhhNpvC14Y6KgmSM=
283285
github.com/pkg/sftp v1.13.7/go.mod h1:KMKI0t3T6hfA+lTR/ssZdunHo+uwq7ghoN09/FSu3DY=
284286
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

Diff for: shared/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func CreateLogger(space string) *slog.Logger {
280280

281281
if strings.ToLower(utils.GetEnv("PICO_PIPE_ENABLED", "true")) == "true" {
282282
conn := NewPicoPipeClient()
283-
newLog, err := pipeLogger.RegisterLogger(log, conn, 100, 10*time.Millisecond)
283+
newLog, err := pipeLogger.RegisterReconnectLogger(log, conn, 100, 10*time.Millisecond)
284284

285285
if err == nil {
286286
newLogger = newLog

0 commit comments

Comments
 (0)