- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for rotatedLog (0.14 sec)
-
pkg/kubelet/logs/container_log_manager_test.go
testFile.Close() defer testFile.Close() testLog := testFile.Name() rotatedLog := fmt.Sprintf("%s.%s", testLog, now.Format(timestampFormat)) err = c.rotateLatestLog(ctx, "test-id", testLog) assert.Equal(t, test.expectError, err != nil) _, err = os.Stat(testLog) assert.Equal(t, test.expectOriginal, err == nil) _, err = os.Stat(rotatedLog) assert.Equal(t, test.expectRotated, err == nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 12.7K bytes - Viewed (0) -
pkg/kubelet/logs/container_log_manager.go
return } if err := c.rotateLog(ctx, id, path); err != nil { klog.ErrorS(err, "Failed to rotate log for container", "worker", worker, "containerID", id, "path", path, "currentSize", info.Size(), "maxSize", c.policy.MaxSize) return } return } func (c *containerLogManager) rotateLog(ctx context.Context, id, log string) error { // pattern is used to match all rotated files.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 15K bytes - Viewed (0)