debug: Auto-shorten IDs passed as parameters

This commit is contained in:
Alexander Neumann
2018-01-25 20:49:26 +01:00
parent d6212ee2d9
commit ed99f53786
2 changed files with 14 additions and 3 deletions

View File

@@ -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)
}
}