Colorado4Wheeler wrote:It is, for sure . It was a side note only because a few folks ended up with MY server def folders in the plugin of HBB and it was confusing and that would have been avoided if I had stored them elsewhere. The reason for this in the first place is that HomeBridge requires a config file to start and it needs a place to store it's logs and plist info, so this folder is where it does all of that. Without it HB won't start, so it has to be there and the plugin has to write that config file. However it something happens to the folder (and there may be cases where that's a legit debug measure to manually remove the serverId folder) then the plugin will dynamically rebuild it when it tries to start the server again. For each server device there is a matching folder so that each server has its own config and log and plist. So 5 server devices = 5 server folders.
Does that make sense or am I misinterpreting your comments?
Since logs are there, and since logs can be useful for diagnosing errors I'm back to my original point. Seems like you'd want to write to the common prefs location so that nothing gets lost in a restore cycle (and if the logs can be located separately it might be a good idea to put them in the Logs folder since we direct customers there for all sorts of diagnostic issues). Since you're writing anyway, why not put them in a place where they'll most likely get retained via backup?
But maybe I'm just over thinking it.