SDK logger should use info level when a log item is added, rather than the log item's level

オープン 初心者向け
#2,431 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php, symfony
領域
backend

調査の方向性

まず、SDKが取得したログ項目をどのように記録し、その項目のレベルをSymfony ConsoleLoggerにどのように渡すかを追ってください。issueには再現手順と期待されるコンソール出力が記載されていますが、ファイル名やテストは挙げられていません。まず、関連するロギングコードとテストを特定してください。完了条件は、取得した項目がinfoレベルで記録され、適切であれば項目のレベルがメッセージ内に保持されることです。

索引モデルが issue の本文から書いたものです。

説明

Bug PHP
How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

5.x-dev

Steps to reproduce

Attach Symfony ConsoleLogger to the Sentry SDK. In a console command, capture a log item ("Test log message") with "warn" or "error" as the log level.

Expected result

Assuming the SDK is working as intended, there is no warning or error condition to log when a log item is captured. The SDK should log to the console at "info" level: "[info] Logs item: Test log message". I would also suggest that the log item's level could be added here, such as: "[info] Logs item (warn): Test log message" or "[info] Logs item (error): Test log message"

Actual result

The SDK logs to the console at "warning" or "error" level: "[warning] Logs item: Test log message" or "[error] Logs item: Test log message"

This is a bit confusing because although a warning or error item was logged, the SDK does not actually have a warning or error condition to report.

主要言語
PHP
スター
1.9k
フォーク
478
平均マージ
14時間 54分
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-php のほかの issue

getsentry/sentry-php の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。