berthubert / simplomon

Very simple monitoring system with a single configuration file
MIT License
119 stars 15 forks source link

Guard against multiple calls to Logger, Webserver #28

Open wandernauta opened 6 months ago

wandernauta commented 6 months ago

The configuration parser allows something like this:

Webserver{address="192.0.2.10:8080", user="api-access-for-robot", password="robot"}
Webserver{address="192.0.2.20:8090", user="dashboard-for-human", password="human"}

But the behavior is potentially unexpected:

This makes it so that any second call to Webserver or Logger is rejected.