mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 19:51:32 +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" {
|
||||
logrus.Infof("sharing target: '%v'", target)
|
||||
if !cmd.agent {
|
||||
logrus.Infof("sharing target: '%v'", target)
|
||||
}
|
||||
|
||||
if resp.Payload.BackendProxyEndpoint != target {
|
||||
upReq := share.NewUpdateShareParams()
|
||||
@ -114,9 +116,13 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
|
||||
}
|
||||
panic(err)
|
||||
}
|
||||
logrus.Infof("updated backend target to: %v", target)
|
||||
if !cmd.agent {
|
||||
logrus.Infof("updated backend target to: %v", target)
|
||||
}
|
||||
} else {
|
||||
logrus.Infof("using existing backend target: %v", target)
|
||||
if !cmd.agent {
|
||||
logrus.Infof("using existing backend target: %v", target)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user