diff --git a/lib/appsignal/extension/jruby.rb b/lib/appsignal/extension/jruby.rb index 0da83ef3e..b97432d8a 100644 --- a/lib/appsignal/extension/jruby.rb +++ b/lib/appsignal/extension/jruby.rb @@ -80,7 +80,7 @@ def self.lib_extension # Logging methods attach_function :appsignal_log, - [:appsignal_string, :int32, :appsignal_string, :pointer], + [:appsignal_string, :int32, :int32, :appsignal_string, :pointer], :void # Transaction methods @@ -273,10 +273,11 @@ def get_server_state(key) make_ruby_string state if state[:len] > 0 end - def log(group, level, message, attributes) + def log(group, level, format, message, attributes) appsignal_log( make_appsignal_string(group), level, + format, make_appsignal_string(message), attributes.pointer )