Skip to content

Commit

Permalink
log missing geoip2 db
Browse files Browse the repository at this point in the history
  • Loading branch information
kd7lxl committed Jul 8, 2021
1 parent ec7adcc commit 73a96bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/nginx/maxmind.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func GeoLite2DBExists() bool {
for _, dbName := range strings.Split(MaxmindEditionIDs, ",") {
filename := dbName + dbExtension
if !fileExists(path.Join(geoIPPath, filename)) {
klog.Error(filename, " not found")
return false
}
files = append(files, filename)
Expand Down

0 comments on commit 73a96bd

Please sign in to comment.