diff options
| author | loyalsoldier <[email protected]> | 2021-09-11 07:03:47 +0800 |
|---|---|---|
| committer | loyalsoldier <[email protected]> | 2021-09-11 07:03:47 +0800 |
| commit | 0f6f218a4a98f38551023ed6b43f2e23f51baa11 (patch) | |
| tree | 6f2b5b3312ba9dcef3918be2a08506c4af6ba770 /plugin | |
| parent | 53b18b22b02745f4bca94f838a9ef6f1222b4898 (diff) | |
Feat: make entry not found error more visible
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/maxmind/mmdb.go | 2 | ||||
| -rw-r--r-- | plugin/plaintext/text_out.go | 2 | ||||
| -rw-r--r-- | plugin/v2ray/dat.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugin/maxmind/mmdb.go b/plugin/maxmind/mmdb.go index 64f79178..aa4d32cc 100644 --- a/plugin/maxmind/mmdb.go +++ b/plugin/maxmind/mmdb.go @@ -122,7 +122,7 @@ func (m *mmdb) Output(container lib.Container) error { for name := range wantList { entry, found := container.GetEntry(name) if !found { - log.Printf("entry %s not found", name) + log.Printf("❌ entry %s not found", name) continue } if err := m.marshalData(writer, entry); err != nil { diff --git a/plugin/plaintext/text_out.go b/plugin/plaintext/text_out.go index 7bdfaf42..6db90388 100644 --- a/plugin/plaintext/text_out.go +++ b/plugin/plaintext/text_out.go @@ -60,7 +60,7 @@ func (t *textOut) Output(container lib.Container) error { for name := range wantList { entry, found := container.GetEntry(name) if !found { - log.Printf("entry %s not found", name) + log.Printf("❌ entry %s not found", name) continue } data, err := t.marshalBytes(entry) diff --git a/plugin/v2ray/dat.go b/plugin/v2ray/dat.go index b33d6090..0c4e76d8 100644 --- a/plugin/v2ray/dat.go +++ b/plugin/v2ray/dat.go @@ -131,7 +131,7 @@ func (g *geoIPDat) Output(container lib.Container) error { for name := range wantList { entry, found := container.GetEntry(name) if !found { - log.Printf("entry %s not found", name) + log.Printf("❌ entry %s not found", name) continue } geoIP, err := g.generateGeoIP(entry) |
