Skip to content

Commit 9ebf099

Browse files
committed
Print more information in log messages
1 parent da280e0 commit 9ebf099

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

zebrium/adapter/adapter.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
const (
17-
collectorVers = "1.47.0"
17+
collectorVers = "1.48.0"
1818
)
1919

2020
type Adapter struct {
@@ -69,7 +69,8 @@ func New(zapiUrl string, zapiToken string, verifySsl bool,
6969
Queue: make(chan ContainerLogMessage),
7070
}
7171

72-
log.Printf("zapiUrl=%s maxIngestSize=%d flushTimeout=%d\n", zapiUrl, maxIngestSize, flushTimeout)
72+
log.Printf("zapiUrl=%s maxIngestSize=%d flushTimeout=%d collectorVers=%s platform=%s\n",
73+
zapiUrl, maxIngestSize, flushTimeout, collectorVers, platform)
7374

7475
go adapter.readQueue()
7576
return adapter

zebrium/zebrium.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewZebriumAdapter(route *router.Route) (router.LogAdapter, error) {
6969
}
7070

7171
deploymentName := os.Getenv(DeploymentNameEnvVar)
72-
log.Printf("%s=%s", DeploymentNameEnvVar, deploymentName)
72+
log.Printf("%s=%s\n", DeploymentNameEnvVar, deploymentName)
7373
deploymentName = strings.Trim(deploymentName, " \t\"'")
7474
if deploymentName == "" {
7575
deploymentName = "default"
@@ -78,9 +78,9 @@ func NewZebriumAdapter(route *router.Route) (router.LogAdapter, error) {
7878

7979
platform := "docker"
8080
awsEnvVal := os.Getenv(AwsExecEnv)
81-
log.Printf("%s=%s", AwsExecEnv, awsEnvVal)
81+
log.Printf("%s=%s\n", AwsExecEnv, awsEnvVal)
8282
if awsEnvVal != "" && strings.HasPrefix(awsEnvVal, "AWS_ECS_") {
83-
log.Printf("Detected running on ECS (%s=%s), set platform to ecs", AwsExecEnv, awsEnvVal)
83+
log.Printf("Detected running on ECS (%s=%s), set platform to ecs\n", AwsExecEnv, awsEnvVal)
8484
platform := "ecs"
8585
}
8686

0 commit comments

Comments
 (0)