Ensure logging in ~/.msf4/log

Fix #4511
bug/bundler_fix
Trevor Rosen 2015-01-07 09:37:07 -06:00
parent fee49b0b85
commit 3ba3465afb
No known key found for this signature in database
GPG Key ID: 255ADB7A642D3928
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ module Metasploit
class Application < Rails::Application class Application < Rails::Application
include Metasploit::Framework::CommonEngine include Metasploit::Framework::CommonEngine
config.paths['log'] = "#{Msf::Config.log_directory}/#{Rails.env}.log"
config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)] config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]
end end
end end