logstream indexprefix 비었을 때 처리

This commit is contained in:
2025-07-29 17:56:47 +09:00
parent b801be6aca
commit e4e0d49ace

View File

@ -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-") {