aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-12 16:07:27 +0800
committerobscuren <geffobscura@gmail.com>2014-06-12 16:07:27 +0800
commit3a9d7d318abb3cd01ecd012ae85da5e586436d65 (patch)
tree833c5e876a1494d9abd79f01e58513ec1c51dfff /ethutil
parent1938bfcddfd2722880a692c59cad344b611711c8 (diff)
downloadgo-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar
go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.gz
go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.bz2
go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.lz
go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.xz
go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.tar.zst
go-tangerine-3a9d7d318abb3cd01ecd012ae85da5e586436d65.zip
log changes
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/config.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/ethutil/config.go b/ethutil/config.go
index e992bda12..f935e8f75 100644
--- a/ethutil/config.go
+++ b/ethutil/config.go
@@ -75,11 +75,11 @@ func ReadConfig(base string, logTypes LoggerType, g *globalconf.GlobalConf, id s
if Config == nil {
path := ApplicationFolder(base)
- Config = &config{ExecPath: path, Debug: true, Ver: "0.5.0 RC12"}
+ Config = &config{ExecPath: path, Debug: true, Ver: "0.5.12"}
Config.conf = g
Config.Identifier = id
Config.Log = NewLogger(logTypes, LogLevelDebug)
- Config.SetClientString("/Ethereum(G)")
+ Config.SetClientString("Ethereum(G)")
}
return Config
@@ -88,11 +88,9 @@ func ReadConfig(base string, logTypes LoggerType, g *globalconf.GlobalConf, id s
// Set client string
//
func (c *config) SetClientString(str string) {
- id := runtime.GOOS
- if len(c.Identifier) > 0 {
- id = c.Identifier
- }
- Config.ClientString = fmt.Sprintf("%s nv%s/%s", str, c.Ver, id)
+ os := runtime.GOOS
+ cust := c.Identifier
+ Config.ClientString = fmt.Sprintf("%s/v%s/%s/%s/Go", str, c.Ver, cust, os)
}
func (c *config) SetIdentifier(id string) {