feat(api): logs & query

This commit is contained in:
Taha Yassine Kraiem 2022-01-27 23:47:01 +01:00
parent 6a89867ba3
commit c95b8b97b3
2 changed files with 4 additions and 1 deletions

View file

@ -108,6 +108,8 @@ func (es *elasticsearch) Request(c *client) error {
}
log.Print("looking for logs in index:")
log.Print(es.Indexes)
log.Print("QUERY:")
log.Print(query)
res, err := esC.Search(
esC.Search.WithContext(context.Background()),
esC.Search.WithIndex(es.Indexes),

View file

@ -18,7 +18,8 @@ import (
)
func main() {
log.SetFlags(log.LstdFlags | log.LUTC | log.Llongfile)
//log.SetFlags(log.LstdFlags | log.LUTC | log.Llongfile)
log.SetFlags(0)
TOPIC_RAW_WEB := env.String("TOPIC_RAW_WEB")
POSTGRES_STRING := env.String("POSTGRES_STRING")