Skip to content

Commit 8952c41

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix-auth-errors
2 parents 99c8787 + 5b1f463 commit 8952c41

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

apptrust/commands/version/update_app_version_cmd.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ type updateAppVersionCommand struct {
2727
}
2828

2929
func (uv *updateAppVersionCommand) Run() error {
30-
log.Info("Updating application version:", uv.applicationKey, "version:", uv.version)
31-
3230
ctx, err := service.NewContext(*uv.serverDetails)
3331
if err != nil {
3432
log.Error("Failed to create service context:", err)
@@ -41,7 +39,6 @@ func (uv *updateAppVersionCommand) Run() error {
4139
return err
4240
}
4341

44-
log.Info("Successfully updated application version:", uv.applicationKey, "version:", uv.version)
4542
return nil
4643
}
4744

apptrust/service/applications/application_service.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func (as *applicationService) CreateApplication(ctx service.Context, requestBody
3636
response.StatusCode, responseBody)
3737
}
3838

39+
log.Info(fmt.Sprintf("Application \"%s\" created successfully.", requestBody.ApplicationKey))
3940
log.Output(string(responseBody))
4041
return nil
4142
}
@@ -52,6 +53,7 @@ func (as *applicationService) UpdateApplication(ctx service.Context, requestBody
5253
response.StatusCode, responseBody)
5354
}
5455

56+
log.Info(fmt.Sprintf("Application \"%s\" updated successfully.", requestBody.ApplicationKey))
5557
log.Output(string(responseBody))
5658
return nil
5759
}
@@ -68,6 +70,6 @@ func (as *applicationService) DeleteApplication(ctx service.Context, application
6870
response.StatusCode, responseBody)
6971
}
7072

71-
log.Output("Application deleted successfully")
73+
log.Info(fmt.Sprintf("Application \"%s\" deleted successfully.", applicationKey))
7274
return nil
7375
}

apptrust/service/packages/package_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func (ps *packageService) BindPackage(ctx service.Context, applicationKey string
3535
response.StatusCode, responseBody)
3636
}
3737

38+
log.Info("Package bound successfully.")
3839
log.Output(string(responseBody))
3940
return nil
4041
}
@@ -51,6 +52,6 @@ func (ps *packageService) UnbindPackage(ctx service.Context, applicationKey, pkg
5152
response.StatusCode, responseBody)
5253
}
5354

54-
log.Output("Package unbound successfully")
55+
log.Info("Package unbound successfully.")
5556
return nil
5657
}

apptrust/service/versions/version_service.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func (vs *versionService) CreateAppVersion(ctx service.Context, request *model.C
4040
response.StatusCode, responseBody)
4141
}
4242

43+
log.Info("Application version created successfully.")
4344
log.Output(string(responseBody))
4445
return nil
4546
}
@@ -110,6 +111,7 @@ func (vs *versionService) DeleteAppVersion(ctx service.Context, applicationKey,
110111
response.StatusCode, responseBody)
111112
}
112113

114+
log.Info("Application version deleted successfully.")
113115
return nil
114116
}
115117

@@ -125,5 +127,6 @@ func (vs *versionService) UpdateAppVersion(ctx service.Context, applicationKey s
125127
response.StatusCode, responseBody)
126128
}
127129

130+
log.Info("Application version updated successfully.")
128131
return nil
129132
}

0 commit comments

Comments
 (0)