logstream indexprefix 비었을 때 처리
This commit is contained in:
@ -158,7 +158,7 @@ func NewClient(cfg Config) (Client, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
indexPrefix := cfg.IndexPrefix
|
indexPrefix := cfg.IndexPrefix
|
||||||
if !strings.HasSuffix(indexPrefix, "-") {
|
if !strings.HasSuffix(indexPrefix, "-") && len(indexPrefix) > 0 {
|
||||||
indexPrefix += "-"
|
indexPrefix += "-"
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(indexPrefix, "ds-logs-") {
|
if !strings.HasSuffix(indexPrefix, "ds-logs-") {
|
||||||
|
|||||||
Reference in New Issue
Block a user