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