Skip to content

Commit

Permalink
revert: log for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Mar 26, 2024
1 parent 4bf55ac commit b50dbd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/core/docker_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package core

import (
"context"
"fmt"
"net/url"
"strings"

Expand Down Expand Up @@ -95,6 +96,12 @@ func checkDefaultDockerSocket(ctx context.Context, cli client.APIClient, socket
return defaultDockerSocketPath
}

fmt.Println(">> socket", socket)
fmt.Println(">> defaultSocketSchema", defaultSocketSchema)
fmt.Println(">> defaultDockerSocketPath", defaultDockerSocketPath)
fmt.Println(">> defaultRemoteDockerSocketPath", defaultRemoteDockerSocketPath)
fmt.Println(">> defaultRootlessDockerSocketPath", defaultRootlessDockerSocketPath)

// this use case will cover the case when the docker host is a unix or npipe socket
if strings.HasPrefix(socket, defaultSocketSchema) {
return strings.Replace(socket, defaultSocketSchema, "", 1)
Expand Down

0 comments on commit b50dbd9

Please sign in to comment.