-
Notifications
You must be signed in to change notification settings - Fork 13
CODE_FILE/CODE_LINE/CODE_FUNC #2
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
Comments
I'm not actually sure how to fix that for PHP. |
could i provide same named attributes myself, or systemd c-library always overrides those? i mean perhaps it fills them if the code itself does not send? |
at least it was worth to try. current answer is no:
but i think it should be something in similar manner. as not all journal messages contain CODE_FILE so it must be something that can be changed. |
it seems to be configured at build time with SD_JOURNAL_SUPPRESS_LOCATION define: so, perhaps just undefine them always to get access to original symbols? and do the php source code location extraction php way. btw, i looked python binding, and it also fills the CODE_{FILE,LINE,FUNCTION} from python stracktrace if user hasn't specified them yet: https://github.com/systemd/python-systemd/blob/master/systemd/journal.py#L46-54 |
oh wait, better define |
So, I know it's possible to inject a language-specific file and line. We already do this in python-systemd. |
great! |
could those values be adjusted to be addresses of php sourcecode, not C where it was compiled from?
The text was updated successfully, but these errors were encountered: