Skip to content

Commit

Permalink
Merge pull request moby#4 from galaxydi/fix-error-message
Browse files Browse the repository at this point in the history
fix error message
  • Loading branch information
wanghq committed Jun 7, 2017
2 parents 06a663a + 725ad4c commit 51d5627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/logger/alilogs/alilogs.go
Expand Up @@ -27,7 +27,7 @@ Ali logging driver usage
--label attr3=attr3Value \
// You assign these environment variables for alilogs logging driver to work
// "securityToken" and "topic" are optinal
// "securityToken" and "topic" are optional
--log-opt env=accessKeyID,accessKeySecret,securityToken,topic \
--env "accessKeyID=xxx" \
--env "accessKeySecret=xxx" \
Expand Down
3 changes: 2 additions & 1 deletion daemon/logger/alilogs/logapi.go
Expand Up @@ -50,7 +50,8 @@ func (client *AliLogClient) getLogStore(endpoint, projectName, logstoreName, acc
}
logStore, err := logProject.GetLogStore(logstoreName)
if err != nil {
errorMsg := fmt.Sprintf("get logstore fail due to '%s'", err.Error())
// return loghub error message directly
errorMsg := fmt.Sprintf("Could not get ali logstore %s from project %s due to '%v'", logstoreName, projectName, err)
logrus.WithFields(logrus.Fields{
"error": err,
}).Error(errorMsg)
Expand Down

0 comments on commit 51d5627

Please sign in to comment.