Skip to content

Commit 0d3f743

Browse files
committed
major improvements to MAFLogger!
1 parent 15ffc2d commit 0d3f743

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/shared/src/main/scala/maf/util/FileUtil.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ object MAFLogger:
232232
case "bench" => configs(LogEnvironment.Benchmarking)
233233
case env => throw new Exception(s"invalid logging environment $env")
234234

235-
private var disabled: Boolean = false
235+
private var disabled: Boolean = true
236236
def enable(): Unit = disabled = false
237237
def disable(): Unit = disabled = true
238238

239-
def log(level: LogLevel, msg: String): Unit =
239+
def log(level: LogLevel, msg: => String): Unit =
240240
if disabled then return
241241

242242
val policy = currentConfig(level)

0 commit comments

Comments
 (0)