|
|
@ -5,6 +5,8 @@ import ( |
|
|
|
|
|
|
|
|
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
"github.com/spf13/viper" |
|
|
|
"github.com/spf13/viper" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"code.tokarch.uk/mainnika/nikita-tokarch-uk/frontend/config" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var Version = "nightly" |
|
|
|
var Version = "nightly" |
|
|
@ -21,5 +23,11 @@ func main() { |
|
|
|
logrus.Debugf("Skip invalid config file %s, %v", viper.ConfigFileUsed(), err) |
|
|
|
logrus.Debugf("Skip invalid config file %s, %v", viper.ConfigFileUsed(), err) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config := &config.Config{} |
|
|
|
|
|
|
|
if err := viper.Unmarshal(config); err != nil { |
|
|
|
|
|
|
|
logrus.Warnf("Cannot unmarshal config, %v", err) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
logrus.Infof("Version: %s", Version) |
|
|
|
logrus.Infof("Version: %s", Version) |
|
|
|
|
|
|
|
logrus.Debugf("Conf: %#v", config) |
|
|
|
} |
|
|
|
} |
|
|
|