• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisionb12c7b5f50749a73b4599c1c15d8e242deb64e8e (tree)
Time2019-08-13 16:42:59
Authorwz <mars@byto...>
CommiterPaladz

Log Message

fix log (#388)

Change Summary

Incremental Difference

--- a/README.md
+++ b/README.md
@@ -124,7 +124,7 @@ cast in consensus around, and choose how many rounds of consensus to allocate th
124124
125125 ### Merger utxo
126126 UTXO has been merged to solve the problem that too much UTXO input causes a failed send transaction to fail.
127-[details](./toolbar/merger_utxo/README.md)
127+[details](./cmd/utxomerge/README.md)
128128
129129 ## License
130130
--- a/log/log.go
+++ b/log/log.go
@@ -68,15 +68,18 @@ func (hook *BtmHook) ioWrite(entry *logrus.Entry) error {
6868 return err
6969 }
7070
71- _, err = writer.Write(msg)
72- return err
71+ if _, err = writer.Write(msg); err != nil {
72+ return err
73+ }
74+
75+ return writer.Close()
7376 }
7477
7578 func clearLockFiles(logPath string) error {
7679 files, err := ioutil.ReadDir(logPath)
7780 if os.IsNotExist(err) {
7881 return nil
79- }else if err != nil {
82+ } else if err != nil {
8083 return err
8184 }
8285
--- a/p2p/security/security.go
+++ b/p2p/security/security.go
@@ -6,7 +6,7 @@ import (
66 cfg "github.com/vapor/config"
77 )
88
9-const logModule = "p2p/security"
9+const logModule = "p2pSecurity"
1010
1111 type Security struct {
1212 filter *PeerFilter
Show on old repository browser