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

Also use internal function name in some nasl log messages #611

Merged
merged 2 commits into from
Oct 22, 2020

Conversation

ArnoStiefvater
Copy link
Member

@ArnoStiefvater ArnoStiefvater commented Oct 21, 2020

What:

Use internal function name in some nasl log messages.

Why:

For easier debugging of nasl scripts.

How:

Checklist:

nasl_get_function_name only return the function
of the nasl script in which the current function
is called.
Now we also include __fun__ in the debug message.
When the internal function is not called from
inside a nasl function the placeholder
"script_main_function" is used as nasl function
name.
@ArnoStiefvater ArnoStiefvater marked this pull request as ready for review October 21, 2020 12:10
@ArnoStiefvater ArnoStiefvater requested a review from cfi-gb October 21, 2020 12:10
@ArnoStiefvater ArnoStiefvater merged commit 8befd17 into greenbone:master Oct 22, 2020
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