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

Bugfix for Issue #12 #15

Merged
merged 2 commits into from
Apr 29, 2015
Merged

Conversation

sschindler89
Copy link
Contributor

logging crashed for unknown attributes #12
this patch should fix this behaviour

@sschindler89
Copy link
Contributor Author

The problem was a deep list returned by format_unknown(). The deep list was no problem for the binaries which where used in the earlier logging. The currently used list_to_atom can't handle this, so instead the old structure is used and binary_to_atom is called.
The 'unknown id' appears for example, if the used dictionaries of eradius are not "sufficient".

@RoadRunnr
Copy link
Member

You should then use lists:flatten instead of going through the binary.

Also, simply converting external data to atom's is not advisable and creates a memory leak!!

@liveforeverx liveforeverx changed the title Bugfix for Issue 12 Bugfix for Issue #12 Apr 24, 2015
@liveforeverx
Copy link
Contributor

Another discussed possibility was, to have: [{'$ejournald_meta', ExtraNonAtomKeys}] which can be in ejournald properly handled.

sschindler89 pushed a commit that referenced this pull request Apr 29, 2015
Bugfix for Issue #12 (unknown IDs leading to crashes)
@sschindler89 sschindler89 merged commit d13d3ec into travelping:master Apr 29, 2015
@sschindler89 sschindler89 deleted the ukid_bugfix branch June 2, 2015 13:38
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.

None yet

3 participants