1 Answers

可以看下project-api的日志,主要关注warn和error等级的,还可以找一下关键字为/app/services/importer/sync/importer.go

日志地址:

/data/log/ones-ai-project-api/ones-ai-project-api.log

导入日志例如:

[INFO] 2023-04-11 12:24:52 /app/services/importer/sync/importer.go:186 [start import]: processer_issue_type
[INFO] 2023-04-11 12:24:52 /app/services/plugin-platform/abilities/implement/http/call_plugin.go:108 CallAbilityFunction.resData:{"code":200,"body":[{"resource_id":"bugs","name":"","status":1,"type":0,"create_time":1681186899112,"icon":1,"detail_type":3},{"resource_id":"releases","name":"","status":1,"type":0,"create_time":1681186899112,"icon":1,"detail_type":9},{"resource_id":"stories","name":"","status":1,"type":0,"create_time":1681186899112,"icon":1,"detail_type":1},{"resource_id":"tasks","name":"","status":1,"type":0,"create_time":1681186899112,"icon":1,"detail_type":2}]}
[INFO] 2023-04-11 12:24:52 /app/services/plugin-platform/abilities/implement/http/call_plugin.go:108 CallAbilityFunction.resData:{"code":200,"body":[{"resource_id":"1147296205001000055","name":"�~K�~U","status":1,"type":0,"icon":1,"create_time":1681186915406,"detail_type":0}]}
[INFO] 2023-04-11 12:24:52 /app/services/plugin-platform/abilities/implement/http/call_plugin.go:108 CallAbilityFunction.resData:{"code":200,"body":[]}
[INFO] 2023-04-11 12:24:52 /app/services/importer/sync/importer.go:196 [end import]: processer_issue_type [cost]: 217.548792ms

错误日志例如:

json: cannot unmarshal string into Go struct field ThirdTaskStatus.detail_type of type plugin_type.ThirdTaskStatusDetailTypeEnum
[ERROR] 2023-04-11 12:08:28 /app/services/importer/plugin_import/import.go:133 handle import message err%!(EXTRA *errors.Err=json: cannot unmarshal string into Go struct field ThirdTaskStatus.detail_type of type plugin_type.ThirdTaskStatusDetailTypeEnum)

另外,可以看一下数据库里面third_resource表有没有导入记录。