From 1f3b2b10e1fd63f28ba2e2f3fbfb885f5476a253 Mon Sep 17 00:00:00 2001 From: ducky Date: Sat, 16 Jan 2016 16:39:42 -0800 Subject: Clean up old logging remnants --- src/main/scala/firrtl/Driver.scala | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/main/scala/firrtl/Driver.scala b/src/main/scala/firrtl/Driver.scala index 700ee936..7cbd63d4 100644 --- a/src/main/scala/firrtl/Driver.scala +++ b/src/main/scala/firrtl/Driver.scala @@ -217,14 +217,8 @@ object Driver extends LazyLogging { case false => List() } - /*implicit val logger = options('log) match { - case s: String => Logger(new PrintWriter(new FileOutputStream(s)), debugMode, printVars) - case false => Logger(new PrintWriter(System.err, true), debugMode, printVars) - }*/ - - // -p "printVars" options only print for debugMode > 'debug, warn if -p enabled and debugMode < 'debug - if (!printVars.isEmpty) - logger.warn("-p options will not print unless debugMode (-d) is debug or trace") + if (!logger.underlying.isDebugEnabled && !printVars.isEmpty ) + logger.warn("-p options will only print at DEBUG log level") options('compiler) match { case "verilog" => verilog(input, output) -- cgit v1.2.3