added log table
This commit is contained in:
@@ -3,6 +3,7 @@ package replay
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"go.digitalcircle.com.br/open/replaycli-go/api"
|
||||
"go.digitalcircle.com.br/open/replaycli-go/types"
|
||||
@@ -13,6 +14,11 @@ type Cli struct {
|
||||
*api.ApiCli
|
||||
}
|
||||
|
||||
func (c *Cli) Log(l *types.Log) error {
|
||||
l.Alias = c.ReplayEnvAlias()
|
||||
l.Dtlog = time.Now()
|
||||
return c.HttpCli().JsonPost("/api/v1/log", l, nil)
|
||||
}
|
||||
func (c *Cli) ReplayEnvQueueId() string {
|
||||
return os.Getenv("REPLAY_QUEUEID")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user