Commits

Benoît Allard  committed babc9ff

Add a log-size configuration item to determine the size of the rolling log

  • Participants
  • Parent commits c519874

Comments (0)

Files changed (2)

File doc/galileo.1

 .RB [ "\-\-dump" | "\-\-no\-dump" ]
 .RB [ "\-\-upload" | "\-\-no\-upload" ]
 .RB [ "\-\-https\-only" | "\-\-no\-https\-only" ]
+.RB [ "\-\-log\-size \fISIZE\fR" ]
 .RB [ "sync" | "daemon" | "version" ]
 
 .SH DESCRIPTION
 .B \-\-no\-upload
 prevent the uploading of tracker data to the Fitbit web service. Data
 is not deleted from trackers until it is acknowledged by the fitbit server
- so this will not result in data loss.
+so this will not result in data loss.
 .TP
 .B \-\-https\-only
 data sent to the Fitbit web service will be transferred via a secure connection
 if HTTPS connection is not possible, this will allow the fallback to HTTP.
 This should only be required if problems with encryption libraries prevent
 data transfer without this option.
+.TP
+.BI \-\-log\-size " SIZE"
+indicate the amount of communication that should be displayed in case of
+errors. Galileo will keep in memory the last \fISIZE\fR communications to help
+debugging if an error happen. This is particularly useful in case of
+hard-to-reproduce issues, where it is too late to collect debug information.
+Default to 10. Set to 0 to disable this functionality.
 
 .SH REQUIREMENTS
 An original Fitbit Bluetooth-LE USB synchronization dongle is

File galileo/config.py

                 BoolParameter('keepDumps', 'keep-dumps', ('dump',), True, False, "enable saving of the megadump to file"),
                 BoolParameter('doUpload', 'do-upload',  ('upload',), True, False, "upload the dump to the server"),
                 BoolParameter('httpsOnly', 'https-only', ('https-only',), True, False, "use http if https is not available"),
+                IntParameter('logSize', 'log-size', ('--log-size',), 10, False, "Amount of communication to display in case of error"),
                 Argument(),
                 HardCodedUIConfig(),
                 ]