diff --git a/daemon/logger/alilogs/alilogs.go b/daemon/logger/alilogs/alilogs.go index 42f7628c44455..c6959b165edd6 100644 --- a/daemon/logger/alilogs/alilogs.go +++ b/daemon/logger/alilogs/alilogs.go @@ -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" \ diff --git a/daemon/logger/alilogs/logapi.go b/daemon/logger/alilogs/logapi.go index 2f8d5bfe9f1fa..67c7f7b272266 100644 --- a/daemon/logger/alilogs/logapi.go +++ b/daemon/logger/alilogs/logapi.go @@ -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)