aboutsummaryrefslogtreecommitdiffstats
path: root/logger
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 04:32:41 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 04:32:41 +0800
commit94e543bc398efbb5c712b6e4cb48d8a57eb3400d (patch)
tree39a88885789b52d1d5addf8e28d859e55aeeeb52 /logger
parentf01d745d70ceb724d015a5d7fcd9516168286b78 (diff)
parent5948adfa10e9ba1069974839140b594ba902cce2 (diff)
downloaddexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.tar
dexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.tar.gz
dexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.tar.bz2
dexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.tar.lz
dexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.tar.xz
dexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.tar.zst
dexon-94e543bc398efbb5c712b6e4cb48d8a57eb3400d.zip
Merge pull request #431 from tgerring/jsonlogs
Structured logging updates
Diffstat (limited to 'logger')
-rw-r--r--logger/types.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/logger/types.go b/logger/types.go
index 86408620e..d98f0874a 100644
--- a/logger/types.go
+++ b/logger/types.go
@@ -66,11 +66,11 @@ func (l *EthMinerNewBlock) EventName() string {
}
type EthChainReceivedNewBlock struct {
- BlockHash string `json:"block_hash"`
- BlockNumber int `json:"block_number"`
- ChainHeadHash string `json:"chain_head_hash"`
- BlockPrevHash string `json:"block_prev_hash"`
- RemoteId int `json:"remote_id"`
+ BlockHash string `json:"block_hash"`
+ BlockNumber *big.Int `json:"block_number"`
+ ChainHeadHash string `json:"chain_head_hash"`
+ BlockPrevHash string `json:"block_prev_hash"`
+ RemoteId string `json:"remote_id"`
LogEvent
}
@@ -79,10 +79,10 @@ func (l *EthChainReceivedNewBlock) EventName() string {
}
type EthChainNewHead struct {
- BlockHash string `json:"block_hash"`
- BlockNumber int `json:"block_number"`
- ChainHeadHash string `json:"chain_head_hash"`
- BlockPrevHash string `json:"block_prev_hash"`
+ BlockHash string `json:"block_hash"`
+ BlockNumber *big.Int `json:"block_number"`
+ ChainHeadHash string `json:"chain_head_hash"`
+ BlockPrevHash string `json:"block_prev_hash"`
LogEvent
}