From aaa5a3c0bb1ec7a5287ced7619a5d563c30ebf0f Mon Sep 17 00:00:00 2001 From: James Lee Date: Wed, 7 Nov 2012 12:48:55 -0600 Subject: [PATCH] Add "Call stack:" to the log when a module load fails --- lib/msf/core/module_manager/loading.rb | 2 +- lib/msf/core/modules/loader/base.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/module_manager/loading.rb b/lib/msf/core/module_manager/loading.rb index 6b344537f9..0137542c0e 100644 --- a/lib/msf/core/module_manager/loading.rb +++ b/lib/msf/core/module_manager/loading.rb @@ -109,4 +109,4 @@ module Msf::ModuleManager::Loading count_by_type end -end \ No newline at end of file +end diff --git a/lib/msf/core/modules/loader/base.rb b/lib/msf/core/modules/loader/base.rb index 7cf0a0563e..651e39e412 100644 --- a/lib/msf/core/modules/loader/base.rb +++ b/lib/msf/core/modules/loader/base.rb @@ -419,6 +419,7 @@ class Msf::Modules::Loader::Base log_lines << "#{module_path} failed to load due to the following error:" log_lines << error.class.to_s log_lines << error.to_s + log_lines << "Call stack:" log_lines += error.backtrace log_message = log_lines.join("\n")