-
-
Notifications
You must be signed in to change notification settings - Fork 131
Logging Level option #319
Comments
I don't have a log level option, but you can manually decrease the frequency of replication by modifying the gravity-sync.timer file in /etc/systemd/ and reloading the systemd daemon. There should be randomly generated values for the timer and the offset in there now. My environment is probably equally as static. I thought about including an option to be less aggressive in the timers and may still do it in the future. It seemed like everyone was always wanting replication to go faster with the old system so that's what I did. One of the things I was attempting with the rewrite was eliminating as many options as I could get away with, and then only putting back what was needed. 😊 |
Thanks for the very quick reply, got it tested and timer mod is working (changed to one hour). I also made a change to the service file to drop the log data into its own file which for me is better as I tend to scan syslog periodically looking for anomalies. To do this, in the service section I added two lines to route the output as such, but noticed the time stamp is omitted at the beginning of each line....that might be a feature of syslog. [Service] Also, I did notice some odd escape characters showing in my log output as such prior to making changes: Apr 12 10:10:57 Rpi-1 gravity-sync[861824]: #33[0;95m∞#33[0m #33[1mInitializing Gravity Sync (4.0.0)#33[0m Again, thanks for all your time spent on cool utility. |
I have baked this into 4.0.2 which you can try as a beta. Update your existing install. This should get you the beta for 4.0.2 that is running on a different branch right now. In this version you can do Also, you can add |
That looks pretty good for sure. I'll test this more tomorrow...any ideas on where the escape characters are coming from. I don't see these anywhere else in syslog. Tested with two ssh clients, windows terminal and mobaXterm...same results I pasted above. Thanks! EDIT: The escape codes are from the "Script Colors" and "Message Codes" appended to the start of each message; these are not working on my side. |
This might be more of a question than an enhancement request as there may be a way to achieve these already. My piholes are mostly static and rarely ever change. I noticed in /var/log/syslog there is quite a bit of writing indicating updates are occurring in 4.0.0 per your note, at an interval of < 5 minutes. In my situation this is overkill, even for when I make a change, I can for the most part make a white list change in two places if it's critical or run a manual sync. So I guess there are two questions, 1) can a logging level be set or can a separate log file be used for gravity-sync to minimize overloading the syslog? And 2) is there a way to reduce the frequency of updates to say once every x number of minutes rather than the default.
Thanks for providing a great product, really nice to have! :)
The text was updated successfully, but these errors were encountered: