-
Notifications
You must be signed in to change notification settings - Fork 57
Fix log tag to use TAG constant #421
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -469,7 +469,7 @@ fun PreviewDisplay( | |
| with(coordinateTransformer) { | ||
| val surfaceCoords = it.transform() | ||
| Log.d( | ||
| "TAG", | ||
| TAG, | ||
| "onTapToFocus: " + | ||
| "input{$it} -> surface{$surfaceCoords}" | ||
| ) | ||
|
Comment on lines
471
to
475
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While you're fixing the log tag, there's an opportunity to improve the log message itself. The current string concatenation will not interpolate the variables Log.d(
TAG,
"onTapToFocus: input{$it} -> surface{$surfaceCoords}"
)Style Guide ReferencesFootnotes
|
||
|
|
||
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.
While the change to use the
TAGconstant is an improvement for consistency, the presence of thisLog.dstatement itself should be scrutinized 1. The repository's guidelines suggest thatLog.dcalls are often remnants of debugging and should be removed before merging unless they provide essential, long-term value. Please consider if this log statement is necessary for the long-term operation of the application.Style Guide References
Footnotes
Scrutinize Debug Logs: Question the use of
Log.d,Log.v, and especiallyprintln(). These are often remnants of debugging and should be removed before merging unless they provide essential, long-term value. ↩