Skip to content

Commit 5936c49

Browse files
committed
add test name logging to CRT logs
1 parent 309619b commit 5936c49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/software/amazon/awssdk/crt/test/CrtTestFixture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public static void setupOnce() {
237237
@Before
238238
public void setup() {
239239
System.out.println("[TEST START] " + testName.getMethodName());
240-
Log.log(Log.LogLevel.Debug, LogSubject.JavaCrtGeneral, "CrtTestFixture setup begin");
240+
Log.log(Log.LogLevel.Debug, LogSubject.JavaCrtGeneral, String.format("CrtTestFixture setup for %s begin", testName.getMethodName()));
241241

242242
// TODO this CrtTestContext should be removed as we are using System Properties
243243
// for tests now.
@@ -246,7 +246,7 @@ public void setup() {
246246

247247
@After
248248
public void tearDown() {
249-
Log.log(Log.LogLevel.Debug, LogSubject.JavaCrtGeneral, "CrtTestFixture tearDown begin");
249+
Log.log(Log.LogLevel.Debug, LogSubject.JavaCrtGeneral, String.format("CrtTestFixture tearDown begin", testName.getMethodName()));
250250
CrtPlatform platform = CRT.getPlatformImpl();
251251
if (platform != null) {
252252
platform.testTearDown(context);

0 commit comments

Comments
 (0)