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

Remove undefined errors in logger #4606

Closed
wants to merge 1 commit into from

Conversation

ylavoie
Copy link
Contributor

@ylavoie ylavoie commented May 14, 2020

Make sure that the logger won't output undefined errors if called before script_name or action_name is initialized.

@ehuelsmann
Copy link
Member

When does that trigger? This should not happen.

ehuelsmann added a commit to ehuelsmann/LedgerSMB that referenced this pull request May 16, 2020
…code

Note that the current implementation assumes the DynamicWorkflow middleware
preceeds it in its call chain. However, for old code, this isn't the case.
Instead, don't derive the name of the script from the call context, but from
the parameters passed on initialization. The action name can be had from the
request object.

Fixes ledgersmb#4606
ehuelsmann added a commit to ehuelsmann/LedgerSMB that referenced this pull request May 16, 2020
…code

Note that the current implementation assumes the DynamicWorkflow middleware
preceeds it in its call chain. However, for old code, this isn't the case.
Instead, don't derive the name of the script from the call context, but from
the parameters passed on initialization. The action name can be had from the
request object.

Fixes ledgersmb#4606
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

Successfully merging this pull request may close these issues.

2 participants