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

Improve log for date invalid format #4616

Closed
fgalan opened this issue Sep 18, 2024 · 1 comment
Closed

Improve log for date invalid format #4616

fgalan opened this issue Sep 18, 2024 · 1 comment
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Sep 18, 2024

Trace like this:

time=2024-09-18T06:28:22.095Z | lvl=WARN | corr=33bec456-7587-11ef-b7bd-0a580a8102cd | trans=1723477698-917-00110509593 | from=10.130.5.177 | srv=sc_almeria | subsrv=/parking | comp=Orion | op=AlarmManager.cpp[506]:badInput | msg=Raisingalarm BadInput 10.130.5.177:JSON Parse Errorin ContextAttribute::Object (date has invalid format)

would be better if include information of the offending string

time=2024-09-18T06:28:22.095Z | lvl=WARN | corr=33bec456-7587-11ef-b7bd-0a580a8102cd | trans=1723477698-917-00110509593 | from=10.130.5.177 | srv=sc_almeria | subsrv=/parking | comp=Orion | op=AlarmManager.cpp[506]:badInput | msg=Raisingalarm BadInput 10.130.5.177:JSON Parse Errorin ContextAttribute::Object (date has invalid format: )

(In addition, "Errorin" seems to be a typo. Could be also fixed)

@fgalan
Copy link
Member Author

fgalan commented Oct 8, 2024

PR #4624

Raising alarm BadInput 127.0.0.1: JSON Parse Error in ContextAttribute::Object (date has invalid format in attribute value: this is not a date)
Repeated BadInput 127.0.0.1: JSON Parse Error in ContextAttribute::Object (date has invalid format in attribute value: 2022-12-21T17:16:63.00Z)
Repeated BadInput 127.0.0.1: date has invalid format in metadata value (2022-12-21T17:16:63.00Z)

@fgalan fgalan closed this as completed Oct 9, 2024
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

No branches or pull requests

1 participant