storagefsm: Fix too-long log handling
This commit is contained in:
parent
6e1919c67f
commit
f3bf773152
4
extern/storage-sealing/fsm.go
vendored
4
extern/storage-sealing/fsm.go
vendored
@ -206,6 +206,10 @@ func (m *Sealing) logEvents(events []statemachine.Event, state *SectorInfo) {
|
|||||||
continue // don't log on every fsm restart
|
continue // don't log on every fsm restart
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(e) > 8000 {
|
||||||
|
e = []byte(string(e[:8000]) + "... truncated")
|
||||||
|
}
|
||||||
|
|
||||||
l := Log{
|
l := Log{
|
||||||
Timestamp: uint64(time.Now().Unix()),
|
Timestamp: uint64(time.Now().Unix()),
|
||||||
Message: string(e),
|
Message: string(e),
|
||||||
|
Loading…
Reference in New Issue
Block a user