Update log/format.go

This commit is contained in:
Martin Holst Swende 2023-09-07 05:46:18 -04:00 committed by GitHub
parent d9e335b2be
commit 00f8abc78c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ func PrintOrigins(print bool) {
}
}
// storeStackRecords is an atomic flag controlling whether the log handler needs
// stackEnabled is an atomic flag controlling whether the log handler needs
// to store the callsite stack. This is needed in case any handler wants to
// print locations (locationEnabled), use vmodule, or print full stacks (BacktraceAt).
var stackEnabled atomic.Bool