Skip to content

Commit 32ba855

Browse files
committed
-debug show query
1 parent 623208f commit 32ba855

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/fofa/fofa_api.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ func (f *FoFa) fetchByFields(fields string, queryStr string) bool {
127127
if f.option.Debug {
128128
printer.Debugf("Fofa Api Query: %s", apiResult.Query)
129129
}
130-
printer.Successf("Fetch Data From FoFa: [%d/%d]", len(apiResult.Results), apiResult.Size)
130+
if f.option.FetchFFIWithQueryAndSize || f.option.Debug {
131+
printer.Successf("Fetch Data From [%s]: [%d/%d]", queryStr, len(apiResult.Results), apiResult.Size)
132+
133+
} else {
134+
printer.Successf("Fetch Data From FoFa: [%d/%d]", len(apiResult.Results), apiResult.Size)
135+
136+
}
131137

132138
for _, result := range apiResult.Results {
133139

0 commit comments

Comments
 (0)