summaryrefslogtreecommitdiff
path: root/internal/mapr/logformat/parser.go
diff options
context:
space:
mode:
authorPaul Buetow <35781042+pbuetow@users.noreply.github.com>2021-10-24 18:05:47 +0300
committerGitHub <noreply@github.com>2021-10-24 18:05:47 +0300
commit67a1f08cd2e5a8dac98962af3b36c25d446e2149 (patch)
tree093fb4bff0bdf086188df86ca5d13dc7f8a34e4f /internal/mapr/logformat/parser.go
parent1ff2e424cc99a979ceac461c28b03605c46a669f (diff)
parentbbe36975814cbacc723f1401223eae3097d1c343 (diff)
Merge pull request #24 from snonux/develop
Bugfixes around integration tests
Diffstat (limited to 'internal/mapr/logformat/parser.go')
-rw-r--r--internal/mapr/logformat/parser.go4
1 files changed, 2 insertions, 2 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
}