added proxy logs, added events logs (#254)

This commit is contained in:
RoyUP9
2021-09-01 15:30:37 +03:00
committed by GitHub
parent 3644fdb533
commit 17fa163ee3
10 changed files with 73 additions and 9 deletions

24
cli/config/envConfig.go Normal file
View File

@@ -0,0 +1,24 @@
package config
import (
"os"
"strconv"
)
const (
ApiServerRetries = "API_SERVER_RETRIES"
)
func GetIntEnvConfig(key string, defaultValue int) int {
value := os.Getenv(key)
if value == "" {
return defaultValue
}
intValue, err := strconv.Atoi(value)
if err != nil {
return defaultValue
}
return intValue
}