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

Decor 'msec' not found and class can't be instantiated #205

Closed
volodya-lombrozo opened this issue Nov 29, 2024 · 3 comments
Closed

Decor 'msec' not found and class can't be instantiated #205

volodya-lombrozo opened this issue Nov 29, 2024 · 3 comments

Comments

@volodya-lombrozo
Copy link

volodya-lombrozo commented Nov 29, 2024

I have the following log statement:

Logger.info(
    this, 
    "We made %d attempts to convert bytecode to xmir and back in %[msec]s",
    attempts,
    100L
);

When I run it, I get:

We made 100 attempts to convert bytecode to xmir and back in [Decor 'msec' not found and class can't be instantiated]

Expected behaviour:

We made 100 attempts to convert bytecode to xmir and back in 100ms

The documentation states:

%[msec]s --- milliseconds ➜ ms, sec, min, hours, etc.

Please, fix the documentation or the code.

@volodya-lombrozo
Copy link
Author

@yegor256 Could you help, please?

@yegor256
Copy link
Member

@volodya-lombrozo it's a typo in documentation, use %[ms]s instead

yegor256 added a commit that referenced this issue Nov 29, 2024
@volodya-lombrozo
Copy link
Author

@yegor256 Works like a charm. Thank you.

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

2 participants