feat(api): logs & query
This commit is contained in:
parent
6a89867ba3
commit
c95b8b97b3
2 changed files with 4 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue