This commit is contained in:
2024-10-09 20:36:51 +03:00
parent 9ca399447c
commit 4c7a1758d6
15 changed files with 115 additions and 49 deletions

View File

@ -216,8 +216,6 @@ func (fc *FlexClient) ReadLine() {
os.Exit(1)
}
// fc.Log.Info(message)
regRespSpot := *regexp.MustCompile(`R(\d+)\|0\|(\d+)\n`)
respSpot := regRespSpot.FindStringSubmatch(message)
@ -253,7 +251,7 @@ func (fc *FlexClient) ReadLine() {
if len(respDelete) > 0 {
spot, _ := fc.Repo.FindSpotByFlexSpotNumber(respDelete[1])
fc.Repo.DeleteSpotByFlexSpotNumber(respDelete[1])
fc.Log.Infof("Spot: DX: %s - Spotter: %s - Freq: %s - Band: %s - FlexID: %v deleted from database", spot.DX, spot.SpotterCallsign, spot.FrequencyHz, spot.Band, respDelete[1])
fc.Log.Debugf("Spot: DX: %s - Spotter: %s - Freq: %s - Band: %s - FlexID: %v deleted from database", spot.DX, spot.SpotterCallsign, spot.FrequencyHz, spot.Band, respDelete[1])
}
}
}