Skip to content

Commit

Permalink
fix(unit-test): unit test logs expose sensitive information (#498) (#516
Browse files Browse the repository at this point in the history
)
  • Loading branch information
smallsheeeep committed Oct 16, 2023
1 parent e2e27fc commit 99ac2eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void createTestDatabasesAndUpdateConfig() {
v.setDataSource(newSource);
}
} catch (Exception e) {
log.error("create test database/user failed, connectType={}, testConfiguration={}", k, v, e);
log.error("create test database/user failed, connectType={}", k, e);
throw new RuntimeException("create test database/user failed", e);
}
});
Expand Down Expand Up @@ -165,7 +165,7 @@ private void dropTestDatabases() {
log.info("drop test database for mysql mode, database name: {}", database);
}
} catch (Exception e) {
log.warn("drop test database/user failed, connectType={}, testConfiguration={}", k, v, e);
log.warn("drop test database/user failed, may the user is not exists, connectType={}", k);
}
});
log.info("drop test database/user done");
Expand Down

0 comments on commit 99ac2eb

Please sign in to comment.