|
|
@@ -63,13 +63,15 @@ 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());
|
|
|
object.put("message",commit.getMessage());
|
|
|
- }catch (Exception ignored){}
|
|
|
-
|
|
|
+ log.info("userId获取测试1 {}",UserService.loginUser().getId());
|
|
|
+ }catch (Exception ignored){
|
|
|
+ log.error("Error occurred while putting values into JSONObject: {}", ignored.getMessage());
|
|
|
+ }
|
|
|
|
|
|
log.info("resolving commit id : {}, title : {}, message : {}", commit.getId(), commit.getTitle(), commit.getMessage());
|
|
|
//todo 注意目前分析的是 message
|