chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
422 stars 270 forks source link

Improve 'apply gateway-configuration error' error on re-configuration #120

Closed brocaar closed 5 years ago

brocaar commented 5 years ago

Is this a bug or a feature request?

Improvement

What did you expect?

A better error message when the gateway is not configured for automatic re-configuration. Currently it logs "apply gateway-configuration error: gateway does not exist".

What happened?

The error log is confusing.

What version are your using?

Reproducible in latest version.

How can your issue be reproduced?

Send a .../command/config message when no [[backend.semtech_udp.configuration]] section is present in the lora-gateway-bridge.toml file.

Could you share your log output?

may 24 15:39:31 localhost lora-gateway-bridge[22056]: time="2019-05-24T15:39:31-03:00" level=error msg="apply gateway-configuration error" error="gateway does not exist"

brocaar commented 5 years ago

This feature will be deprecated and the error has been removed.