Fix linter warnings
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
// getMemoryUsage returns memory usage for logger.
|
||||
func (c *Context) getMemoryUsage(e *zerolog.Event, level zerolog.Level, message string) {
|
||||
var m runtime.MemStats
|
||||
|
||||
runtime.ReadMemStats(&m)
|
||||
|
||||
e.Str("memalloc", fmt.Sprintf("%dMB", m.Alloc/1024/1024))
|
||||
|
Reference in New Issue
Block a user