We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 556317e commit 03bcb6aCopy full SHA for 03bcb6a
influxdb-zabbix.go
@@ -244,12 +244,15 @@ func (p *Param) gatherData() error {
244
currTableForLog,
245
p.input.interval))
246
247
- runtime.ReadMemStats(&m)
248
- log.Trace(fmt.Sprintf("--- Memory usage: Alloc = %s | TotalAlloc = %s | Sys = %s | NumGC = %v",
+ if config.Logging.LevelFile == "Trace" || config.Logging.LevelConsole == "Trace" {
+ runtime.ReadMemStats(&m)
249
+ log.Trace(fmt.Sprintf("--- Memory usage: Alloc = %s | TotalAlloc = %s | Sys = %s | NumGC = %v",
250
helpers.IBytes(m.Alloc / 1024),
251
helpers.IBytes(m.TotalAlloc / 1024),
252
helpers.IBytes(m.Sys / 1024),
253
m.NumGC))
254
+ }
255
+
256
257
// print all log messages
258
print(infoLogs)
0 commit comments