kopia lustrzana https://github.com/cyoung/stratux
Don't log situation or traffic data unless globalSettings.ReplayLog is true.
rodzic
8de91a55f0
commit
bcf20249e8
|
@ -287,8 +287,10 @@ func setDataLogTimeWithGPS(sit SituationData) {
|
|||
}
|
||||
|
||||
func logSituation() {
|
||||
if globalSettings.ReplayLog {
|
||||
dataLogChan <- DataLogRow{tbl: "mySituation", data: mySituation}
|
||||
}
|
||||
}
|
||||
|
||||
func logStatus() {
|
||||
dataLogChan <- DataLogRow{tbl: "status", data: globalStatus}
|
||||
|
@ -299,8 +301,10 @@ func logSettings() {
|
|||
}
|
||||
|
||||
func logTraffic(ti TrafficInfo) {
|
||||
if globalSettings.ReplayLog {
|
||||
dataLogChan <- DataLogRow{tbl: "traffic", data: ti}
|
||||
}
|
||||
}
|
||||
|
||||
func initDataLog() {
|
||||
go dataLogWriter()
|
||||
|
|
Ładowanie…
Reference in New Issue