owntracks / recorder

Store and access data published by OwnTracks apps
Other
894 stars 123 forks source link

Logging of mqtt conn request optional #62

Closed przemas75 closed 9 years ago

przemas75 commented 9 years ago

Can you make this requests logging optional, please?

2015-09-21 version 0.4.0

I believe this is the commit: https://github.com/owntracks/recorder/commit/e4a09ca5e5968cc742fcb6466e7540c653961877

What is the reason anyway for having this?

edit: i mean, this block https://github.com/owntracks/recorder/blob/master/recorder.c#L1495 It fills syslog very frequent.

jpmens commented 9 years ago

If you are getting that frequently it means the recorder is being disconnected from your broker frequently; I think you should check what is happening on the broker side.

przemas75 commented 9 years ago

Thanks for the idea, it was right direction however with my broker was everything fine. It turned out, i have configured ot-recorder to be started by systemd and also i was starting it manually. Log was filled by ot-recorder from systemd (as a second instance).

Now, it is only started by systemd and looks good.

Your soft is awesome!

jpmens commented 9 years ago

You understand the reason why that was happening? The Recorder was connecting with identical clientids, and a broker MUST kick out duplicates; hence the disconnections. Glad it's working for you now.