File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
src/main/java/org/truffleruby/debug Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 30
30
end
31
31
32
32
if openssl_prefix = ENV [ 'OPENSSL_PREFIX' ]
33
+ Truffle ::Debug . log_config ( "Found OpenSSL in #{ openssl_prefix } " )
34
+
33
35
# We need to set PKG_CONFIG_PATH too, see https://github.com/oracle/truffleruby/issues/1830
34
36
# OpenSSL's extconf.rb calls the pkg_config() helper.
35
37
ENV [ 'PKG_CONFIG_PATH' ] = [ "#{ openssl_prefix } /lib/pkgconfig" , *ENV [ 'PKG_CONFIG_PATH' ] ] . join ( ':' )
Original file line number Diff line number Diff line change @@ -352,19 +352,35 @@ protected int getCacheLimit() {
352
352
353
353
}
354
354
355
+ @ CoreMethod (names = "log_config" , onSingleton = true , required = 1 )
356
+ public abstract static class LogConfigNode extends CoreMethodArrayArgumentsNode {
357
+
358
+ @ Specialization
359
+ protected DynamicObject logConfig (Object value ,
360
+ @ Cached ToJavaStringNode toJavaStringNode ) {
361
+ config (toJavaStringNode .executeToJavaString (value ));
362
+ return nil ();
363
+ }
364
+
365
+ @ TruffleBoundary
366
+ static void config (String message ) {
367
+ RubyLanguage .LOGGER .config (message );
368
+ }
369
+
370
+ }
371
+
355
372
@ CoreMethod (names = "log_warning" , isModuleFunction = true , required = 1 )
356
373
public abstract static class LogWarningNode extends CoreMethodArrayArgumentsNode {
357
374
358
375
@ Specialization
359
- protected DynamicObject logWarning (
360
- VirtualFrame frame , Object value ,
376
+ protected DynamicObject logWarning (Object value ,
361
377
@ Cached ToJavaStringNode toJavaStringNode ) {
362
378
warning (toJavaStringNode .executeToJavaString (value ));
363
379
return nil ();
364
380
}
365
381
366
382
@ TruffleBoundary
367
- public static void warning (String message ) {
383
+ static void warning (String message ) {
368
384
RubyLanguage .LOGGER .warning (message );
369
385
}
370
386
You can’t perform that action at this time.
0 commit comments