mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 21:20:23 +03:00
Fix logrus error message logging
This commit is contained in:
+2
-5
@@ -42,10 +42,7 @@ func (s *LoggerSuite) TestLogger(c *C) {
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(fields["level"], Equals, "error")
|
||||
|
||||
msg, ok := fields["error"]
|
||||
c.Assert(ok, Equals, true)
|
||||
c.Assert(msg, Equals, "Fake error")
|
||||
|
||||
_, ok = fields["probe"]
|
||||
msg, ok := fields["Error"]
|
||||
c.Assert(ok, Equals, true)
|
||||
c.Assert(msg.(map[string]interface{})["cause"], Equals, "Fake error")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user