Skip to content

Commit 3ba3465

Browse files
committed
Ensure logging in ~/.msf4/log
Fix rapid7#4511
1 parent fee49b0 commit 3ba3465

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module Framework
3434
class Application < Rails::Application
3535
include Metasploit::Framework::CommonEngine
3636

37+
config.paths['log'] = "#{Msf::Config.log_directory}/#{Rails.env}.log"
3738
config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]
3839
end
3940
end

0 commit comments

Comments
 (0)