Skip to content

Commit 69b8a7f

Browse files
CodeCasterXclaude
andcommitted
debug: 在 Tip.merge() 中添加 System.err 诊断输出
使用 System.err.println 直接输出诊断信息, 确保无论日志配置如何都能看到输出。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a3eb870 commit 69b8a7f

File tree

1 file changed

+5
-0
lines changed
  • framework/fel/java/fel-core/src/main/java/modelengine/fel/core/util

1 file changed

+5
-0
lines changed

framework/fel/java/fel-core/src/main/java/modelengine/fel/core/util/Tip.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,14 @@ public Tip addAll(Map<String, Content> args) {
118118
* @return 表示当前的 {@link Tip}。
119119
*/
120120
public Tip merge(Tip other) {
121+
// 诊断:直接打印到 System.err 以确保能看到
122+
System.err.println("[DIAGNOSTIC Tip.merge] Called with other=" + other + ", other_is_null=" + (other == null) + ", thread=" + Thread.currentThread().getName());
123+
121124
// 如果 other 为 null,返回当前 Tip(不改变)
122125
// 这处理了并发场景中某个分支可能返回 null 的情况
123126
if (other == null) {
127+
System.err.println("[DIAGNOSTIC Tip.merge] WARNING: other is null! Returning this=" + this);
128+
new RuntimeException("Tip.merge called with null - stack trace").printStackTrace(System.err);
124129
return this;
125130
}
126131
return this.addAll(other.values);

0 commit comments

Comments
 (0)