Tweak log message

This commit is contained in:
Vladimir Mihailenco 2020-06-10 16:44:48 +03:00
parent ec194ab8f1
commit 0fbf4e7221
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ func usePrecise(dur time.Duration) bool {
func formatMs(dur time.Duration) int64 { func formatMs(dur time.Duration) int64 {
if dur > 0 && dur < time.Millisecond { if dur > 0 && dur < time.Millisecond {
internal.Logger.Printf( internal.Logger.Printf(
"specified duration is %s, but minimal supported value is %s - truncate to 1", "specified duration is %s, but minimal supported value is %s - truncating to 1s",
dur, time.Millisecond, dur, time.Millisecond,
) )
return 1 return 1
@ -27,7 +27,7 @@ func formatMs(dur time.Duration) int64 {
func formatSec(dur time.Duration) int64 { func formatSec(dur time.Duration) int64 {
if dur > 0 && dur < time.Second { if dur > 0 && dur < time.Second {
internal.Logger.Printf( internal.Logger.Printf(
"specified duration is %s, but minimal supported value is %s - truncate to 1", "specified duration is %s, but minimal supported value is %s - truncating to 1s",
dur, time.Second, dur, time.Second,
) )
return 1 return 1