diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-24 13:34:06 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-24 13:34:19 +0300 |
| commit | 14959ffba46282dd7b8ada53db0dfc0e1b26ab2e (patch) | |
| tree | 0b207cb61af3aa2bd93a0c5c864ec91246dd4595 /internal/mapr | |
| parent | ac2d6fa5d054ca725a7268eb1a8e050525372c34 (diff) | |
Fix DCat color test.
Diffstat (limited to 'internal/mapr')
| -rw-r--r-- | internal/mapr/logformat/parser.go | 4 | ||||
| -rw-r--r-- | internal/mapr/server/aggregate.go | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/internal/mapr/logformat/parser.go b/internal/mapr/logformat/parser.go index 129081d..d6aac8c 100644 --- a/internal/mapr/logformat/parser.go +++ b/internal/mapr/logformat/parser.go @@ -3,11 +3,11 @@ package logformat import ( "errors" "fmt" - "os" "reflect" "strings" "time" + "github.com/mimecast/dtail/internal/config" "github.com/mimecast/dtail/internal/mapr" ) @@ -26,7 +26,7 @@ type Parser struct { // NewParser returns a new log parser. func NewParser(logFormatName string, query *mapr.Query) (*Parser, error) { - hostname, err := os.Hostname() + hostname, err := config.Hostname() if err != nil { return nil, err } diff --git a/internal/mapr/server/aggregate.go b/internal/mapr/server/aggregate.go index 11c9ee5..4162828 100644 --- a/internal/mapr/server/aggregate.go +++ b/internal/mapr/server/aggregate.go @@ -2,7 +2,6 @@ package server import ( "context" - "os" "strings" "time" @@ -38,7 +37,7 @@ func NewAggregate(queryStr string) (*Aggregate, error) { return nil, err } - fqdn, err := os.Hostname() + fqdn, err := config.Hostname() if err != nil { dlog.Common.Error(err) } |
