-
Notifications
You must be signed in to change notification settings - Fork 583
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
Added operation duration to the finishing log. #356
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.
Should we care for performance of these logs?
@dariuszseweryn, refactored a bit. |
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.
How does it look like in the actual execution? Doesn't the delegation mess with the log tag generation?
|
||
public class OperationLogger { | ||
|
||
@RestrictTo(RestrictTo.Scope.LIBRARY) |
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.
Not really needed since it is under internal
package
Let me check the delegation, you may be right. |
Actually no, since it's a static method it works.
|
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.
Good. I liked the way it was displayed before so the operation name would consistently be displayed in a single place (%8s
) in logs. Could we leave it this way? The finish log could look something like: FINISHED <Operation>(id) took xx ms
Shouldn't the ms
should have a space before the amount of milliseconds?
Is this what you meant?
|
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.
Exactly 👍
@@ -1,9 +1,11 @@ | |||
package com.polidea.rxandroidble.internal.serialization; | |||
|
|||
import android.support.annotation.RestrictTo; | |||
|
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.
We should include the formatting configuration into the repository so these kind of changes would not happen.
No description provided.