Skip to content
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

logging twice #243

Open
lessmor opened this issue Jun 5, 2017 · 2 comments
Open

logging twice #243

lessmor opened this issue Jun 5, 2017 · 2 comments

Comments

@lessmor
Copy link

lessmor commented Jun 5, 2017

Add the annoation :@loggable to my test project, which caused printing log twice.

  1. test code(static method) as follows:
  @Loggable(limit = 200, unit = TimeUnit.MILLISECONDS)
    public static void run() throws InterruptedException{
        TimeUnit.MILLISECONDS.sleep(300);
        // Something that should not take more than 200 msec.
    }

2.log result:

13:51:42.489 [main] WARN  com.test.aspectj.LoggableObject - #run(): in 299.59ms (too slow!)
13:51:42.489 [main] WARN  com.test.aspectj.LoggableObject - #run(): in 299.59ms (too slow!)
@0crat
Copy link

0crat commented Jun 5, 2017

@yegor256 please, pay attention to this issue

@yegor256
Copy link
Member

@lessmor are you sure you don't call run() two times?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants