mirror of
https://github.com/restic/restic.git
synced 2025-08-22 04:07:26 +00:00
debug: Auto-shorten IDs passed as parameters
This commit is contained in:
@@ -19,7 +19,7 @@ func BenchmarkLogIDStr(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
debug.Log("id: %v", id.Str())
|
||||
debug.Log("id: %v", id)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,6 @@ func BenchmarkLogIDString(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
debug.Log("id: %v", id.String())
|
||||
debug.Log("id: %s", id)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user