mirror of
https://github.com/restic/restic.git
synced 2026-11-15 18:36:45 +00:00
debug: Auto-shorten IDs passed as parameters
This commit is contained in:
1 parent
d6212ee2d9
commit
ed99f53786
2 files changed
+14
-3
No files matched your search
@@ -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