Skip to content

fix: replace debug print() with logger.error() in file_tools#780

Merged
teknium1 merged 1 commit into
NousResearch:mainfrom
memosr:fix/replace-debug-prints
Mar 11, 2026
Merged

fix: replace debug print() with logger.error() in file_tools#780
teknium1 merged 1 commit into
NousResearch:mainfrom
memosr:fix/replace-debug-prints

Conversation

@memosr

@memosr memosr commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Problem

tools/file_tools.py içindeki write_file_tool() fonksiyonu hata
durumunda print() ile doğrudan stdout'a yazıyordu. Bu üretim
ortamında istenmeyen bir davranış — hatalar logging sistemi üzerinden
yönetilmeli.

Fix

print(f"[FileTools] write_file error: ...") satırı kaldırıldı,
yerine logger.error("write_file error: %s: %s", ...) kullanıldı.
logger zaten dosyanın üstünde tanımlı.

Files Changed

  • tools/file_tools.py

@ImTheDanger-1 ImTheDanger-1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RLGTM. Clean mcs bump (v1.96.2 → v1.96.3) + METRICS_TARGET removal. No user-facing impact — internal SDK update only. Metrics continue to flow to VictoriaMetrics via OTLP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants