mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 04:52:35 +02:00
remove some debug logging
This commit is contained in:
parent
021c68f2a7
commit
136a2ec89f
1 changed files with 0 additions and 7 deletions
|
@ -8,7 +8,6 @@ import (
|
||||||
"github.com/yusing/go-proxy/internal/docker"
|
"github.com/yusing/go-proxy/internal/docker"
|
||||||
idlewatcher "github.com/yusing/go-proxy/internal/docker/idlewatcher/types"
|
idlewatcher "github.com/yusing/go-proxy/internal/docker/idlewatcher/types"
|
||||||
"github.com/yusing/go-proxy/internal/homepage"
|
"github.com/yusing/go-proxy/internal/homepage"
|
||||||
"github.com/yusing/go-proxy/internal/logging"
|
|
||||||
net "github.com/yusing/go-proxy/internal/net/types"
|
net "github.com/yusing/go-proxy/internal/net/types"
|
||||||
"github.com/yusing/go-proxy/internal/task"
|
"github.com/yusing/go-proxy/internal/task"
|
||||||
"github.com/yusing/go-proxy/internal/watcher/health"
|
"github.com/yusing/go-proxy/internal/watcher/health"
|
||||||
|
@ -199,25 +198,19 @@ func (r *Route) ShouldExclude() bool {
|
||||||
if r.Container != nil {
|
if r.Container != nil {
|
||||||
switch {
|
switch {
|
||||||
case r.Container.IsExcluded:
|
case r.Container.IsExcluded:
|
||||||
logging.Debug().Str("container", r.Container.ContainerName).Msg("container excluded: explicitly excluded")
|
|
||||||
return true
|
return true
|
||||||
case r.IsZeroPort() && !r.UseIdleWatcher():
|
case r.IsZeroPort() && !r.UseIdleWatcher():
|
||||||
logging.Debug().Str("container", r.Container.ContainerName).Msg("container excluded: zero port and no idle watcher")
|
|
||||||
return true
|
return true
|
||||||
case r.Container.IsDatabase && !r.Container.IsExplicit:
|
case r.Container.IsDatabase && !r.Container.IsExplicit:
|
||||||
logging.Debug().Str("container", r.Container.ContainerName).Msg("container excluded: database")
|
|
||||||
return true
|
return true
|
||||||
case strings.HasPrefix(r.Container.ContainerName, "buildx_"):
|
case strings.HasPrefix(r.Container.ContainerName, "buildx_"):
|
||||||
logging.Debug().Str("container", r.Container.ContainerName).Msg("container excluded: buildx prefix")
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
} else if r.IsZeroPort() {
|
} else if r.IsZeroPort() {
|
||||||
logging.Debug().Str("container", r.Container.ContainerName).Msg("container excluded: zero port")
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(r.Alias, "x-") ||
|
if strings.HasPrefix(r.Alias, "x-") ||
|
||||||
strings.HasSuffix(r.Alias, "-old") {
|
strings.HasSuffix(r.Alias, "-old") {
|
||||||
logging.Debug().Str("container", r.Container.ContainerName).Msg("container excluded: alias")
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Reference in a new issue