feat: optionally log

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-25 20:11:43 -05:00
parent 6ecf6c31ba
commit e6bf778a65
2 changed files with 18 additions and 8 deletions

View File

@@ -85,7 +85,8 @@ func CommandPortsAdd(args []string) error {
}
stringPortMap := strings.Join(args[1:], " ")
proxyPortMap := parseProxyPortMapString(stringPortMap)
warn := true
proxyPortMap := parseProxyPortMapString(stringPortMap, warn)
if err := addProxyPorts(appName, proxyPortMap); err != nil {
return err
}
@@ -121,7 +122,8 @@ func CommandPortsRemove(args []string) error {
}
stringPortMap := strings.Join(args[1:], " ")
proxyPortMap := parseProxyPortMapString(stringPortMap)
warn := true
proxyPortMap := parseProxyPortMapString(stringPortMap, warn)
if err := removeProxyPorts(appName, proxyPortMap); err != nil {
return err
}
@@ -141,7 +143,8 @@ func CommandPortsSet(args []string) error {
}
stringPortMap := strings.Join(args[1:], " ")
proxyPortMap := parseProxyPortMapString(stringPortMap)
warn := true
proxyPortMap := parseProxyPortMapString(stringPortMap, warn)
if err := setProxyPorts(appName, proxyPortMap); err != nil {
return err
}