-
Notifications
You must be signed in to change notification settings - Fork 309
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
ログの改善 #1910
ログの改善 #1910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG_WARNとか消しちゃうのいいですね!
2経路あるの気になってたので、こっち消しちゃう形で賛成です。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ほぼLGTMです!!
すっきりして良いですね!!
レビューを反映しました。 |
src/domain/frontend/log.ts
Outdated
@@ -1,4 +1,5 @@ | |||
/** ログ出力用の関数を生成する。ブラウザ専用。 */ | |||
// TODO: DIできるようにする |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目的語があるとコメントが不要になったかどうかの判断しやすいかも
// TODO: DIできるようにする | |
// TODO: window.backendをDIできるようにする |
src/store/engine.ts
Outdated
error: e, | ||
message: `Failed to restart engine: ${engineId}`, | ||
}); | ||
const { error } = createLogger("RESTART_ENGINES"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
store内のローカルのcreateLogger残ってそうです
他にも後何個かありそう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
内容
[scope] message
のログを作る機構を統一します。また、このフォーマットに沿っていないところをこのフォーマットを使うようにします。
関連 Issue
(なし)
スクリーンショット・動画など
(なし)
その他
(なし)