Fix log validation messages and example typo

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
bo.jiang
2025-12-22 17:56:19 +08:00
parent 3bde8d89a4
commit b1d7cb00cf

View File

@@ -432,7 +432,7 @@ func heuristicsCopyFileLog(ctx context.Context, w io.Writer, logDir, logFileName
func safeServiceName(s string) error {
// Max length of a service name is 256 across supported OSes
if len(s) > maxServiceLength {
return fmt.Errorf("length must be less than 100")
return fmt.Errorf("length must be less than %d", maxServiceLength)
}
if reServiceNameUnsafeCharacters.MatchString(s) {