mirror of
https://github.com/dragonheim/gagent.git
synced 2025-05-24 13:26:48 -07:00
Attempting to fix security scan.
Some checks failed
Some checks failed
This commit is contained in:
parent
9a89745878
commit
df07f6be28
2 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
debug "runtime/debug"
|
||||
flag "flag"
|
||||
log "log"
|
||||
http "net/http"
|
||||
|
@ -31,7 +32,7 @@ import (
|
|||
|
||||
uuid "github.com/jakehl/goid"
|
||||
|
||||
versioninfo "github.com/carlmjohnson/versioninfo"
|
||||
//versioninfo "github.com/carlmjohnson/versioninfo"
|
||||
)
|
||||
|
||||
/*
|
||||
|
@ -130,7 +131,7 @@ func main() {
|
|||
* reads the environment variables. It also sets up the logging.
|
||||
*/
|
||||
func init() {
|
||||
versioninfo.AddFlag(nil)
|
||||
// versioninfo.AddFlag(nil)
|
||||
flag.Parse()
|
||||
cfg := environment
|
||||
err := env.Parse(&cfg)
|
||||
|
@ -151,7 +152,8 @@ func init() {
|
|||
/*
|
||||
* Initialize the configuration
|
||||
*/
|
||||
config.Version = versioninfo.Version
|
||||
config.Version, err = debug.ReadBuildInfo()
|
||||
// config.Version = versioninfo.Version
|
||||
|
||||
config.File = cfg.ConfigFile
|
||||
|
||||
|
@ -307,5 +309,4 @@ func init() {
|
|||
}
|
||||
autorestart.WatchFilename = config.File
|
||||
autorestart.StartWatcher()
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue