From 3ba3465afb9e1342b9a21af22443a0df6058242a Mon Sep 17 00:00:00 2001 From: Trevor Rosen Date: Wed, 7 Jan 2015 09:37:07 -0600 Subject: [PATCH] Ensure logging in ~/.msf4/log Fix #4511 --- config/application.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/application.rb b/config/application.rb index f4eaab5417..47b5195903 100644 --- a/config/application.rb +++ b/config/application.rb @@ -34,6 +34,7 @@ module Metasploit class Application < Rails::Application 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)] end end