Skip to content

Commit

Permalink
chore(lib): Change println to log.Println
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Sep 15, 2023
1 parent 26115d3 commit 98fdd4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/zeaburpack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"github.com/zeabur/zbpack/internal/nodejs/nextjs"

Check failure on line 5 in pkg/zeaburpack/main.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
"github.com/zeabur/zbpack/internal/static"
"log"
"os"
"path"
"strings"
Expand Down Expand Up @@ -181,7 +182,7 @@ func Build(opt *BuildOptions) error {
println("Transforming build output to serverless format ...")
err = nextjs.TransformServerless(*opt.ResultImage, *opt.Path)
if err != nil {
println("Failed to transform serverless: " + err.Error())
log.Println("Failed to transform serverless: " + err.Error())
handleBuildFailed(err)
return err
}
Expand Down

0 comments on commit 98fdd4a

Please sign in to comment.