Skip to content

Commit

Permalink
parse dep log level adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
fusikai committed Apr 23, 2023
1 parent 06fab88 commit d2f7d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/service/appDep/app_dep.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
Url_Gitlab = "/api/v4/projects/%d/repository/files/%s?ref=%s"
)

//DepApp ..
// DepApp ..
type DepApp interface {
ParseDepFile(app db.AppInfo) ([]*db.AppPackage, error) // 获取依赖文件内容并解析
SaveToMysql(aid int, records []*db.AppPackage) error // 解析结果存储到mysql
Expand Down Expand Up @@ -63,7 +63,7 @@ func (p *appDep) SyncAppVersion() error {

appPackages, err := depApp.ParseDepFile(app)
if err != nil {
xlog.Error("ParseDepFile", zap.Error(err), zap.String("appName", app.AppName))
xlog.Warn("ParseDepFile", zap.Error(err), zap.String("appName", app.AppName))
} else {
xlog.Info("ParseDepFile success", zap.String("appName", app.AppName))
}
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/service/k8s/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ func (i *syncPod) mysqlCreateOrUpdate(zoneCode, domain string, in *v1.Pod) (err
}
return
}

// 数据库中不存在对应记录进行insert操作,或者历史配置被删除了,目前只有日志记录存档
err = i.db.Save(&m).Error
if err != nil {
Expand Down

0 comments on commit d2f7d36

Please sign in to comment.