JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 797 forks source link

Logging synthetic methods on inner Class annotations #111

Closed faradaj closed 8 years ago

faradaj commented 8 years ago

When a class is annotated with @DebugLog, Hugo is logging compiler-generated, synthetic methods too. (i.e. inner class' private method) This is not a desired behaviour, I guess.

Reproducing within hugo-example:

Below is the resulting log that includes logs of synthetic method access$000:

01-05 10:30:37.503  23503-23503/com.example.hugo V/Greeter﹕ ⇢ <init>(name="Jake")
01-05 10:30:37.503  23503-23503/com.example.hugo V/Greeter﹕ ⇠ <init> [0ms]
01-05 10:30:37.503  23503-23503/com.example.hugo V/Greeter﹕ ⇢ access$000(x0=com.example.hugo.HugoActivity$Greeter@3ca37d8)
01-05 10:30:37.504  23503-23503/com.example.hugo V/Greeter﹕ ⇢ sayHello()
01-05 10:30:37.504  23503-23503/com.example.hugo V/Greeter﹕ ⇠ sayHello [0ms] = "Hello, Jake"
01-05 10:30:37.504  23503-23503/com.example.hugo V/Greeter﹕ ⇠ access$000 [0ms] = "Hello, Jake"