mirror of
https://github.com/openziti/zrok.git
synced 2025-06-25 04:02:15 +02:00
logging tweaks in 'zrok share reserved --agent' (#463)
This commit is contained in:
parent
df65230cb2
commit
7244bda520
@ -100,7 +100,9 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if resp.Payload.BackendMode != "socks" {
|
if resp.Payload.BackendMode != "socks" {
|
||||||
|
if !cmd.agent {
|
||||||
logrus.Infof("sharing target: '%v'", target)
|
logrus.Infof("sharing target: '%v'", target)
|
||||||
|
}
|
||||||
|
|
||||||
if resp.Payload.BackendProxyEndpoint != target {
|
if resp.Payload.BackendProxyEndpoint != target {
|
||||||
upReq := share.NewUpdateShareParams()
|
upReq := share.NewUpdateShareParams()
|
||||||
@ -114,11 +116,15 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
if !cmd.agent {
|
||||||
logrus.Infof("updated backend target to: %v", target)
|
logrus.Infof("updated backend target to: %v", target)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if !cmd.agent {
|
||||||
logrus.Infof("using existing backend target: %v", target)
|
logrus.Infof("using existing backend target: %v", target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var shareDescription string
|
var shareDescription string
|
||||||
switch resp.Payload.ShareMode {
|
switch resp.Payload.ShareMode {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user