Skip to content

Fix: log full exception instead of ex.Message in GetHoldingInformation#33

Open
HashidaTKS wants to merge 1 commit into
masterfrom
fix/scraper-full-exception-log
Open

Fix: log full exception instead of ex.Message in GetHoldingInformation#33
HashidaTKS wants to merge 1 commit into
masterfrom
fix/scraper-full-exception-log

Conversation

@HashidaTKS

Copy link
Copy Markdown
Owner

問題点

Scraper.GetHoldingInformation() の catch ブロックで LoggerWrapper.Warn(ex.Message) を使用していた(line 405)。

ex.Message のみでは、スタックトレースや InnerException が記録されないため、例外の発生箇所や根本原因を特定することが困難だった。

改善内容

  • LoggerWrapper.Warn(ex.Message)LoggerWrapper.Warn(ex) に変更
  • スタックトレースを含む完全な例外情報がログに記録されるようになる

Test plan

  • 例外発生時にスタックトレースを含む完全なログが出力されることを確認

🤖 Generated with Claude Code

…ion catch

LoggerWrapper.Warn(ex.Message) discards the stack trace and inner exception,
making it impossible to determine where an error originated. Change to
LoggerWrapper.Warn(ex) to preserve the full exception information.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant