Use slf4j in instrument non-guest code#12627
Conversation
hubertp
left a comment
There was a problem hiding this comment.
Welcome to the dark side
...on/src/main/java/org/enso/interpreter/instrument/command/SetExecutionEnvironmentCommand.java
Outdated
Show resolved
Hide resolved
...-instrument-common/src/main/java/org/enso/interpreter/instrument/job/SerializeModuleJob.java
Outdated
Show resolved
Hide resolved
engine/runtime/src/main/java/org/enso/interpreter/runtime/EnsoContext.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Hubert Plociniczak <hubert.plociniczak@gmail.com>
|
All our logs are now broken: |
Right. Because |
| } else { | ||
| logger.log( | ||
| Level.FINE, | ||
| "Requested environment '{}' is the same as the current one. Request has no" |
There was a problem hiding this comment.
This must have been broken as java.util.logging.Logger doesn't recognize {} as a variable placeholder.
I see. I'll fix it:
How to detect the errors?
yields few candidates. But then we also log from scala and following command gives plenty:
|
Fine tunes #12627 by using variable arguments when passing multiple arguments to log messages.
Pull Request Description
TruffleLoggershall only be used in the interpreter running guest coderuntime-instrument-xyzprojects is not running a guest codeTruffleLoggerisn't appropriate and it yields exception when it cannot findEnsoContextaroundTruffleLoggerChecklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,