repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
d946a84
parent
357120e
author
Antonio Mika
date
2024-11-17 17:07:30 +0000 UTC
Update to use reconnect logger
3 files changed,  +4, -2
M go.mod
M go.sum
M go.mod
+1, -1
1@@ -41,7 +41,7 @@ require (
2 	github.com/picosh/pubsub v0.0.0-20241114191831-ec8f16c0eb88
3 	github.com/picosh/send v0.0.0-20241107150437-0febb0049b4f
4 	github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9
5-	github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605
6+	github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8
7 	github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
8 	github.com/sendgrid/sendgrid-go v3.16.0+incompatible
9 	github.com/simplesurance/go-ip-anonymizer v0.0.0-20200429124537-35a880f8e87d
M go.sum
+2, -0
1@@ -279,6 +279,8 @@ github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9 h1:g5oZmnDFr11HarA8I
2 github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9/go.mod h1:UrDH/VCIc1wg/L6iY2zSYt4TiGw+25GsKSnkVkU40Dw=
3 github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605 h1:A9yRvOupUH9gxGJ/r+4x2RL2uZVEf2Am2AfiLrAfaTg=
4 github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
5+github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8 h1:3uaXGZr8Or53Eq13F9fsbi1F/tmxcWEFboZeEphYpyE=
6+github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
7 github.com/pkg/sftp v1.13.7 h1:uv+I3nNJvlKZIQGSr8JVQLNHFU9YhhNpvC14Y6KgmSM=
8 github.com/pkg/sftp v1.13.7/go.mod h1:KMKI0t3T6hfA+lTR/ssZdunHo+uwq7ghoN09/FSu3DY=
9 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
M shared/config.go
+1, -1
1@@ -280,7 +280,7 @@ func CreateLogger(space string) *slog.Logger {
2 
3 	if strings.ToLower(utils.GetEnv("PICO_PIPE_ENABLED", "true")) == "true" {
4 		conn := NewPicoPipeClient()
5-		newLog, err := pipeLogger.RegisterLogger(log, conn, 100, 10*time.Millisecond)
6+		newLog, err := pipeLogger.RegisterReconnectLogger(log, conn, 100, 10*time.Millisecond)
7 
8 		if err == nil {
9 			newLogger = newLog