Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Replace fmt by log for logging
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
  • Loading branch information
viveksyngh authored and alexellis committed Apr 2, 2020
1 parent d4e8931 commit 8c3defb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions buildshiprun/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,7 @@ func deployFunction(ctx context.Context, client *faasSDK.Client, deploySpec *faa
err error
)
exists, err := functionExists(ctx, client, deploySpec.FunctionName, gatewayURL)

fmt.Println("Deploying: " + deploySpec.Image + " as " + deploySpec.FunctionName)
// client := faasSDK.NewClient(&FaaSAuth{}, gatewayURL, nil, &timeout)
log.Println("Deploying: " + deploySpec.Image + " as " + deploySpec.FunctionName)
if exists {
deploySpec.Update = true
}
Expand Down
2 changes: 1 addition & 1 deletion garbage-collect/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func Handle(req []byte) string {
for _, fn := range deployedFunctions {
if garbageReq.Repo == "*" ||
(fn.GetRepo() == garbageReq.Repo && !included(&fn, owner, garbageReq.Functions)) {
fmt.Printf("Delete: %s\n", fn.Name)
log.Printf("Delete: %s\n", fn.Name)
err = client.DeleteFunction(context.Background(), fn.Name, namespace)
if err != nil {
auditEvent := sdk.AuditEvent{
Expand Down

0 comments on commit 8c3defb

Please sign in to comment.