Skip to content

Commit 16f3cb1

Browse files
committed
Update log output for /request
1 parent 0b79fa5 commit 16f3cb1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

api/request.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func RequestHandler(c *gin.Context) {
8181
err = unoconvert.RunContext(context.Background(), inFile.Name(), outFile.Name(), form.Options...)
8282
}
8383

84+
log.Printf("Processing: %s %s %s", inFile.Name(), outFile.Name(), form.Options)
85+
8486
if err != nil {
8587
log.Printf("unoconvert error: %s", err)
8688
c.String(http.StatusInternalServerError, fmt.Sprintf("unoconvert error: %s", err))

unoconvert/unoconvert.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package unoconvert
33
import (
44
"context"
55
"fmt"
6-
"log"
76
"os/exec"
87
"time"
98
)
@@ -81,7 +80,6 @@ func (u *Unoconvert) Run(infile string, outfile string, opts ...string) error {
8180
args = append(connections, files...)
8281
args = append(args, opts...)
8382

84-
log.Printf("Command: %s %s", u.Executable, args)
8583
cmd := exec.Command(u.Executable, args...)
8684

8785
return cmd.Run()
@@ -103,8 +101,6 @@ func (u *Unoconvert) RunContext(ctx context.Context, infile string, outfile stri
103101
args = append(connections, files...)
104102
args = append(args, opts...)
105103

106-
log.Printf("Command: %s %s", u.Executable, args)
107-
108104
cmd := exec.CommandContext(ctx, u.Executable, args...)
109105
return cmd.Run()
110106
}

0 commit comments

Comments
 (0)