diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index 363c57747..918374f17 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -416,13 +416,13 @@ func WaitForReady(pid int, timeout time.Duration, ready func() (bool, error)) er // ends with '/', it's used as a directory with default file name. // 'logPattern' can contain variables that are substituted: // - %TIMESTAMP%: is replaced with a timestamp using the following format: -// -// - %COMMAND%: is replaced with 'command' -// - %TEST%: is replaced with 'test' (omitted by default) +// +// - %COMMAND%: is replaced with 'command' +// - %TEST%: is replaced with 'test' (omitted by default) func DebugLogFile(logPattern, command, test string) (*os.File, error) { if strings.HasSuffix(logPattern, "/") { - // Default format: /runsc.log.. - logPattern += "runsc.log.%TIMESTAMP%.%COMMAND%" + // Default format: /runsc.log...txt + logPattern += "runsc.log.%TIMESTAMP%.%COMMAND%.txt" } logPattern = strings.Replace(logPattern, "%TIMESTAMP%", time.Now().Format("20060102-150405.000000"), -1) logPattern = strings.Replace(logPattern, "%COMMAND%", command, -1)