Skip to content

Commit 39cc1fe

Browse files
author
Brent Cook
committed
only set log_level in the Metasploit Framework context
when including framework as a gem, this app is undefined MS-1518
1 parent c9dd863 commit 39cc1fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/environments/production.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
Metasploit::Framework::Application.configure do
2-
config.log_level = :info
1+
if defined? Metasploit::Framework::Application
2+
Metasploit::Framework::Application.configure do
3+
config.log_level = :info
4+
end
35
end

0 commit comments

Comments
 (0)