mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
whisper: logging updated
This commit is contained in:
parent
9b119887e4
commit
d8caedcdf3
2 changed files with 3 additions and 2 deletions
|
|
@ -82,6 +82,7 @@ var (
|
|||
testMode = flag.Bool("t", false, "use of predefined parameters for diagnostics")
|
||||
generateKey = flag.Bool("k", false, "generate and show the private key")
|
||||
|
||||
argVerbosity = flag.Int("verbosity", logger.Warn, "log verbosity level")
|
||||
argTTL = flag.Uint("ttl", 30, "time-to-live for messages in seconds")
|
||||
argWorkTime = flag.Uint("work", 5, "work time in seconds")
|
||||
argPoW = flag.Float64("pow", whisper.MinimumPoW, "PoW for normal messages in float format (e.g. 2.7)")
|
||||
|
|
@ -152,7 +153,7 @@ func echo() {
|
|||
}
|
||||
|
||||
func initialize() {
|
||||
glog.SetV(logger.Warn)
|
||||
glog.SetV(*argVerbosity)
|
||||
glog.SetToStderr(true)
|
||||
|
||||
done = make(chan struct{})
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ func (e *Envelope) Seal(options *MessageParams) error {
|
|||
}
|
||||
|
||||
if target > 0 && bestBit < target {
|
||||
return errors.New("Failed to reach the PoW target")
|
||||
return errors.New("Failed to reach the PoW target, insufficient work time")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue