add _MINIO_SERVER_DEBUG env for enabling debug messages (#11128)

This commit is contained in:
Harshavardhana
2020-12-17 16:52:47 -08:00
committed by GitHub
parent 7c9ef76f66
commit f714840da7
9 changed files with 30 additions and 20 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ func newBucketMetacache(bucket string, cleanup bool) *bucketMetacache {
}
func (b *bucketMetacache) debugf(format string, data ...interface{}) {
if metacacheDebug {
console.Debugf(format, data...)
if serverDebugLog {
console.Debugf(format+"\n", data...)
}
}