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

Step name is null in logs when scoped #4031

Open
Sam-Kruglov opened this issue Dec 6, 2021 · 1 comment
Open

Step name is null in logs when scoped #4031

Sam-Kruglov opened this issue Dec 6, 2021 · 1 comment
Labels
status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter type: bug

Comments

@Sam-Kruglov
Copy link

Sam-Kruglov commented Dec 6, 2021

logger.error(String.format("Encountered an error executing step %s in job %s", name, stepExecution.getJobExecution().getJobInstance().getJobName()), e);

I have my step defined as @JobScope, so it's wrapped in a proxy. During debugging at this line, this.getName() returns the name but this.name returns null. So, this log above prints "Encountered an error executing step null ..."

@Sam-Kruglov Sam-Kruglov changed the title Step name is null in logs Step name is null in logs when scoped Dec 6, 2021
@fmbenhassine fmbenhassine added status: waiting-for-triage Issues that we did not analyse yet type: bug labels Dec 7, 2021
@cppwfs
Copy link
Contributor

cppwfs commented Feb 2, 2022

I tried to reproduce this problem but was unable to do so. Can you provide a small sample that shows this behavior? Thanks!

@cppwfs cppwfs added status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter and removed status: waiting-for-triage Issues that we did not analyse yet labels Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter type: bug
Projects
None yet
Development

No branches or pull requests

3 participants