Skip to content

Commit 382367f

Browse files
author
Jonathan Chauncey
committed
chore(logger): Update error message when we dont find any log messages
1 parent af6bc3d commit 382367f

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

controller/models/apps/apps.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package apps
22

33
import (
44
"encoding/json"
5+
"errors"
56
"fmt"
67
"strconv"
78
"strings"
@@ -98,14 +99,12 @@ func Logs(c *client.Client, appID string, lines int) (string, error) {
9899
body, err := c.BasicRequest("GET", u, nil)
99100

100101
if err != nil || len(body) < 1 {
101-
return "", fmt.Errorf(
102+
103+
return "", errors.New(
102104
`There are currently no log messages. Please check the following things:
103105
1) Logger and fluentd pods are running.
104-
2) If you just installed the logger components via the chart, please make sure you restarted the workflow pod.
105-
3) The application is writing logs to the logger component.
106-
You can verify that logs are appearing in the logger component by issuing the following command:
107-
curl http://<log service ip>:80/logs/%s on a kubernetes host.
108-
To get the service ip you can do the following: kubectl get svc deis-logger --namespace=deis`, appID)
106+
2) The application is writing logs to the logger component by checking that an entry in the ring buffer was created: kubectl logs <logger pod> --namespace=deis
107+
3) Making sure that the container logs were mounted properly into the fluentd pod: kubectl exec <fluentd pod> --namespace=deis ls /var/log/containers`)
109108
}
110109

111110
// We need to trim a few characters off the front and end of the string

0 commit comments

Comments
 (0)