otterize / network-mapper

Map Kubernetes traffic: in-cluster, to the Internet, and to AWS IAM and export as text, intents, or an image
Apache License 2.0
612 stars 23 forks source link

Fix bug where echo middleware would not write 'level' for logs and write empty 'error' field even if no error occurs #178

Closed orishoshan closed 8 months ago

orishoshan commented 8 months ago

The middleware we were using before would always write an "error" field, even if it was empty. It also would not write "level", as it was directly writing to the buffer, instead of calling the appropriate logrus function.