Open jbenet opened 8 years ago
Seems that logs are different now, .event
is not guaranteed to always exist:
example 1 - Didn't break
{
event: 'log API client connected',
session: 'b2b765ac-48b1-459c-8e1f-9fcd83868a3f',
system: 'core/server',
time: '2015-11-07T18:28:26.632599724Z'
}
example 2 - Error thrown
{
id: 5649,
level: 5,
message: 'bitswap net handleNewStream from <peer.ID bqE6Uf>',
module: 'bitswap_network',
time: '2015-11-07T18:28:30.288928034Z'
}
@whyrusleeping, have you standardiz'ed the logs?
://////
need tests even on the logs
@diasdavid @whyrusleeping any ideas?