Matching log format for easy identification.
@@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"flag"
+ "fmt"
"io/ioutil"
"log"
"os"
@@ -100,6 +101,10 @@ func main() {
wallet, _ := common.NewWalletFromPrivateKey(priK)
+ log.SetFlags(log.Lshortfile | log.Lmicroseconds)
+ prefix := fmt.Sprintf("%x|--|", wallet.Address().ID()[0:2])
+ log.SetPrefix(prefix)
+
if cfg.DBDir == "" {
addr := wallet.Address()
cfg.DBDir = ".db/" + addr.String()
