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

Verbose does not seem to work for me #215

Open
mwisnicki opened this issue Jun 28, 2019 · 1 comment
Open

Verbose does not seem to work for me #215

mwisnicki opened this issue Jun 28, 2019 · 1 comment

Comments

@mwisnicki
Copy link
Contributor

With 0.17:

import org.scalameter._
object DumbBenchmark extends Bench.LocalTime {
  performance of "sleep" in {
    using(Gen.unit(""))
    config (Key.verbose -> true)
    in { _ =>
      Thread.sleep(1000)
    }
  }
}

And adding -verbose to app arguments I get no verbose logging.

I'm not sure what I'm doing wrong but when I've traced the code I found no way this would work.

I've placed breakpoint at Console.debug and the currentContext has verbose=false and looks to be the default context as Captured in setupzipper and then restored in perfomance-test.scala:90.

@mwisnicki
Copy link
Contributor Author

I missed the part where setupzipper is updated in descendInScope but still the fact remains I get no verbose logging.

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

1 participant