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

Add FATAL trace when alarms are released - MQTT #1661

Open
mapedraza opened this issue Oct 2, 2024 · 2 comments
Open

Add FATAL trace when alarms are released - MQTT #1661

mapedraza opened this issue Oct 2, 2024 · 2 comments

Comments

@mapedraza
Copy link
Collaborator

mapedraza commented Oct 2, 2024

Component

When the following logs:

time=2024-10-04T07:45:15.835Z | lvl= | corr=de0bd7ec-72fc-44db-8040-1c2d79138a2d | trans=de0bd7ec-72fc-44db-8040-1c2d79138a2d | op=IOTAJSON.MQTT.Binding | from=n/a | srv=n/a | subsrv=n/a | msg=GLOBAL-002: Couldn't connect with MQTT broker: XXXX | comp=IoTAgent

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

No response

@fgalan
Copy link
Member

fgalan commented Oct 2, 2024

FATAL is normally used for errors that break the IOTA (i.e. the IOTA process stops). Why don't use ERROR (the usual level for errors) in this case?

@fgalan fgalan changed the title Añadir traza de nivel FATAL cuando se desactiven las alarmas - MQTT Add FATAL trace when alarms are released - MQTT Oct 2, 2024
@AlvaroVega
Copy link
Member

AlvaroVega commented Oct 2, 2024

Just here https://github.com/telefonicaid/iotagent-json/blob/dd6ebde6d4afe0f4c768af2937b5c48f2f73b3c4/lib/bindings/MQTTBinding.js#L266-L269

Some log like:

time=2024-10-02T12:36:06.432Z | lvl=ERROR | corr=b747e40a-b533-4f18-a736-f421b8a5d63f | trans=n/a | op=app | ver=3.0.0-next | ob=ES | comp=Urbo2 | msg=Releasing alarm MONGODB

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

3 participants