8000 本番モードのmonolog 調整 by watarukashii · Pull Request #5322 · EC-CUBE/ec-cube · GitHub
[go: up one dir, main page]

Skip to content

本番モードのmonolog 調整 #5322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Conversation

watarukashii
Copy link
Contributor
@watarukashii watarukashii commented Mar 11, 2022

概要(Overview・Refs Issue)

現状、本番モードで Deprecated エラーや、同じようなログが大量に出力されているため
本番モードのmonologの調整を行いました。

方針(Policy)

symfony/symfony#26267 (comment)

上記、symfonyのissue にならって作成。

#5082 (comment)
に記載したとおりですが、Deprecated 以外にも、不要かと思われるエラーを定義しました。

実装に関する補足(Appendix)

テスト(Test)

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

@codecov-commenter
Copy link
codecov-commenter commented Mar 11, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.54%. Comparing base (710b64c) to head (97a3a84).
Report is 212 commits behind head on 4.1.

Additional details and impacted files
@@             Coverage Diff              @@
##                4.1    #5322      +/-   ##
============================================
+ Coverage     68.42%   68.54%   +0.11%     
  Complexity     6159     6159              
============================================
  Files           463      463              
  Lines         25280    25285       +5     
============================================
+ Hits          17298    17331      +33     
+ Misses         7982     7954      -28     
Flag Coverage Δ
E2E 57.95% <100.00%> (+0.57%) ⬆️
Unit 76.09% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kiy0taka kiy0taka added this to the 4.1.x milestone Mar 16, 2022
@kiy0taka kiy0taka added the improvement 機能改善 label Mar 16, 2022
@@ -10,7 +16,7 @@ monolog:
max_files: 60
path: '%kernel.logs_dir%/%kernel.environment%/site.log'
formatter: eccube.log.formatter.line
level: debug
level: info
Copy link
Contributor

Choose a reason for hiding this comment

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

@watarukashii
こちらの設定は、ERROR発生時はdebug以上を出力するようにする、かなと思うんですが、ここもdeubgに変更する必要ありますか?
https://qiita.com/mkita_a/items/362a9dd7c824a3793ad1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chihiro-adachi
コメントありがとうございます。おっしゃるとおり、 ERROR発生時はdebug以上を出力する と存じます。
prod/monolog.logをdebugに変更いたしました。恐れ入ります。引き続きよろしくおねがいします。

@carkn carkn merged commit 5fcc175 into EC-CUBE:4.1 Apr 8, 2022
@carkn
Copy link
Contributor
carkn commented Apr 8, 2022

@watarukashii
確認しました。問題ないかと思います。
マージしました。

@chihiro-adachi chihiro-adachi modified the milestones: 4.1.x, 4.1.3 Apr 18, 2022
@Yangsin Yangsin modified the milestones: 4.1.3, 4.2.0 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0