1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

internal/api/atomicasset.go: In LogInfo() add host parameter.

This commit is contained in:
Henrik Hautakoski 2023-02-07 08:42:52 +01:00
parent afd79110f9
commit 0448ea4781
No known key found for this signature in database
GPG key ID: 217490840C18A5D9

View file

@ -30,11 +30,17 @@ func NewAtomicAsset(url string, host string, block_time float64) AtomicAsset {
}
func (e AtomicAsset) LogInfo() LogParams {
return LogParams{
p := LogParams{
"type", "atomicasset",
"url", e.url,
"block_time", e.block_time,
}
if len(e.host) > 0 {
p.Add("host", e.host)
}
return p
}
func (e AtomicAsset) Call(ctx context.Context) (agentcheck.Response, string) {