only set log_level in the Metasploit Framework context

when including framework as a gem, this app is undefined

MS-1518
bug/bundler_fix
Brent Cook 2016-05-18 08:39:34 -05:00
parent c9dd863085
commit 39cc1fee1c
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
Metasploit::Framework::Application.configure do
config.log_level = :info
if defined? Metasploit::Framework::Application
Metasploit::Framework::Application.configure do
config.log_level = :info
end
end