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

Commit 8c3defb

Browse files
viveksynghalexellis
authored andcommitted
Replace fmt by log for logging
Signed-off-by: Vivek Singh <[email protected]>
1 parent d4e8931 commit 8c3defb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

buildshiprun/handler.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,7 @@ func deployFunction(ctx context.Context, client *faasSDK.Client, deploySpec *faa
507507
err error
508508
)
509509
exists, err := functionExists(ctx, client, deploySpec.FunctionName, gatewayURL)
510-
511-
fmt.Println("Deploying: " + deploySpec.Image + " as " + deploySpec.FunctionName)
512-
// client := faasSDK.NewClient(&FaaSAuth{}, gatewayURL, nil, &timeout)
510+
log.Println("Deploying: " + deploySpec.Image + " as " + deploySpec.FunctionName)
513511
if exists {
514512
deploySpec.Update = true
515513
}

garbage-collect/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func Handle(req []byte) string {
7272
for _, fn := range deployedFunctions {
7373
if garbageReq.Repo == "*" ||
7474
(fn.GetRepo() == garbageReq.Repo && !included(&fn, owner, garbageReq.Functions)) {
75-
fmt.Printf("Delete: %s\n", fn.Name)
75+
log.Printf("Delete: %s\n", fn.Name)
7676
err = client.DeleteFunction(context.Background(), fn.Name, namespace)
7777
if err != nil {
7878
auditEvent := sdk.AuditEvent{

0 commit comments

Comments
 (0)