ISSUE DESCRIPTION gRPC ManagedChannelImpl log messages contain unsubstituted…
- User
ISSUE DESCRIPTION
gRPC ManagedChannelImpl log messages contain unsubstituted placeholders Affected version: ArcadeDB server 26.4.2 Component: logging — bridge between gRPC's java.util.logging and the server's SLF4J/Logback backend
Summary
Some WARNING messages emitted by gRPC's ManagedChannelImpl are written to the ArcadeDB server log with the original MessageFormat placeholders ({0}, {1}) left literal instead of being substituted with the actual values.
Example
2026-05-21 06:53:11.234 WARNI [ManagedChannelImpl] [{0}] Failed to resolve name. status={1} 2026-05-21 06:53:11.234 WARNI [ManagedChannelImpl] [{0}] Failed to resolve name. status={1}
Expected (illustrative):
WARNI [ManagedChannelImpl] [channel-7] Failed to resolve name. status=UNAVAILABLE: Unable to resolve host vcc-superx-arcadedb-2.…
Root cause (suspected)
gRPC's internal loggers use java.util.logging with MessageFormat-style placeholders. The bridge that forwards JUL records to the ArcadeDB logging backend (SLF4J/Logback) is not translating {0}, {1} parameters into the SLF4J {} style, so the parameter array is dropped and the raw template ends up in the log file. Confirmation: the same logical event is also logged elsewhere (via GrpcLogAppender / AppendLogResponseHandler) with the full formatted message, so the data exists — it's just lost on the ManagedChannelImpl path.
Impact
Low severity but operationally annoying — these log lines carry zero information, so anyone scanning logs for the actual channel and gRPC status gets a stream of [{0}] Failed to resolve name. status={1} that they then have to correlate with neighbouring lines.
Suggested fix
Either:
- Install SLF4JBridgeHandler (org.slf4j:jul-to-slf4j) and ensure it translates JUL LogRecord.parameters via MessageFormat.format(...) before delegating to SLF4J; or
- Configure a JUL Handler for the io.grpc logger that uses a SimpleFormatter-compatible formatter so parameters are substituted before the message reaches the SLF4J side.
Environment
- ArcadeDB 26.4.2, default packaging
- Logs viewed via kubectl logs; same behaviour observed across all 3 HA pods
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository using command. Additionally, you can use and to temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call ) using or commands. However you don't need to use or before submitting your changes. In fact, only submits currently unstaged changes because it uses to get the changes that need to be submitted. - Assistant
I'll start by exploring the repository structure and searching for the gRPC/JUL logging bridge code mentioned in the issue.
- Assistant
Let me search more specifically for JUL bridge and logging configuration.
- Assistant
There's a log package in engine. Let me explore that.
- Assistant
There's a custom logging system. Let me look at DefaultLogger and LogManager.
- Assistant
Let me read more of DefaultLogger, and also Search for how gRPC logging is handled.
- Assistant
rg is not found - need to use grep. Let me continue reading the file and LogFormatter.
- Assistant
The bug is clear:
LogFormatteruses printf-styleString.formatted()instead of JUL's MessageFormat. I'll check related code and tests next. - Assistant
Checking how DefaultLogger creates LogRecords and whether parameters are ever set.
- Assistant
I'll implement MessageFormat support in both formatters and extract shared logic. Checking tests and whether a base helper already exists.
- Assistant
I'll fix both formatters to apply JUL MessageFormat for
{0}-style placeholders (gRPC), keeping printf as a fallback. - Assistant
I left a duplicate method declaration — fixing that now.
- Assistant
There's an extra closing brace — removing it.
- Assistant
Updating AnsiLogFormatter to use the same
resolveMessagehelper. - Assistant
Removing leftover duplicate lines at the end of the file.
- Assistant
Writing a small reproducer to verify MessageFormat and printf-style substitution both work.
- Assistant
HOME isn't set — fixing that and retrying the build.
- Assistant
Build succeeded. Compiling and running the verification script.
- Assistant
Fix works. Running existing logger tests to confirm nothing regressed.
- Assistant
Looks like tests passed (exit 0). Let me also clean up unused imports in AnsiLogFormatter -
java.util.*might only be needed for Date now... Date is in java.util, IllegalFormatException no longer us...
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.