mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-12 08:58:44 +01:00
Adding geolocation download log message. (#2085)
* Adding geolocation download prompt message. * import log file and remove unnecessary else --------- Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
This commit is contained in:
parent
57624203c9
commit
216d9f2ee8
@ -9,6 +9,7 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
"gorm.io/driver/sqlite"
|
"gorm.io/driver/sqlite"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/logger"
|
"gorm.io/gorm/logger"
|
||||||
@ -30,6 +31,8 @@ func loadGeolocationDatabases(dataDir string) error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Infof("geo location file %s not found , file will be downloaded", file)
|
||||||
|
|
||||||
switch file {
|
switch file {
|
||||||
case MMDBFileName:
|
case MMDBFileName:
|
||||||
extractFunc := func(src string, dst string) error {
|
extractFunc := func(src string, dst string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user