You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/msf/core/db_manager/note.rb
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -145,9 +145,10 @@ def report_note(opts)
145
145
ntype=opts.delete(:type) || opts.delete(:ntype) || (raiseRuntimeError,"A note :type or :ntype is required")
146
146
147
147
unlessopts[:data].is_a?(Hash)
148
-
message="[DEPRECATION] Using #{method.inspect} with a non-hash data value is deprecated, please raise a Github issue with this output. Called from: #{caller(1,stack_size).to_a}"
149
-
print_warningmessage
150
-
# Additionally write to ~/.msf4/logs/framework.log - as this gets attached to Github issues etc
message="\n[-] [DEPRECATION] Using #{__method__} with a non-hash data value is deprecated, please raise a Github issue with this output.\n[-] Call stack:\n#{stack_trace}"
150
+
warn(message)
151
+
# Additionally write to ~/.msf4/logs/framework.log - as this gets attached to GitHub issues etc
0 commit comments