lib/pdk/cli.rb in pdk-1.3.1 vs lib/pdk/cli.rb in pdk-1.3.2
- old
+ new
@@ -14,10 +14,10 @@
module PDK::CLI
def self.run(args)
@base_cmd.run(args)
rescue PDK::CLI::ExitWithError => e
- PDK.logger.error(e.message)
+ PDK.logger.send(e.log_level, e.message)
exit e.exit_code
rescue PDK::CLI::FatalError => e
PDK.logger.fatal(e.message) if e.message