|
|
@@ -63,7 +63,7 @@ public class CommitLinkServiceImpl implements CommitLinkService {
|
|
|
//ANA 日志需要打出用户的commit信息
|
|
|
JSONObject object = new JSONObject();
|
|
|
try{
|
|
|
- object.put("user_id",UserService.loginUser().getId());
|
|
|
+ object.put("user_id",userMapper.selectIdByEmail(commit.getAuthor().getEmail()));
|
|
|
object.put("commit_id",commit.getId());
|
|
|
object.put("project_id",projectId);
|
|
|
object.put("commit_time",commit.getTimestamp());
|
|
|
@@ -72,9 +72,6 @@ public class CommitLinkServiceImpl implements CommitLinkService {
|
|
|
}catch (Exception ignored){
|
|
|
log.error("Error occurred while putting values into JSONObject: {}", ignored.getMessage());
|
|
|
}
|
|
|
- log.info("userId获取测试2 {}",UserService.loginUser().getId());
|
|
|
- log.info("userId获取测试3 {}",object.get("user_id"));
|
|
|
- log.info("commit_id获取测试{}",object.get("commit_id"));
|
|
|
|
|
|
log.info("resolving commit id : {}, title : {}, message : {}", commit.getId(), commit.getTitle(), commit.getMessage());
|
|
|
//todo 注意目前分析的是 message
|