Skip to content

Commit

Permalink
switch to log.Printf over fmt.Printf in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryPenguin committed Oct 2, 2016
1 parent d9b25e0 commit c7e0d1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func main() {
changes := make(map[string]struct{})

if err != nil {
fmt.Printf("Unable to acquire context: %s\n", err)
log.Printf("Unable to acquire context: %s\n", err)
} else {
defer destroyContext(ctx)

Expand All @@ -86,7 +86,7 @@ func main() {
os.Exit(0)
}()

fmt.Printf("External edit agent has acquired context. Temporary files will be stored in %s.\n", ctx.DirPath)
log.Printf("External edit agent has acquired context. Temporary files will be stored in %s.\n", ctx.DirPath)

go func() {
for {
Expand Down Expand Up @@ -135,7 +135,7 @@ func main() {

openFile(scriptPath, editorPath)

fmt.Printf("Opened UUID %s at FS path %s\n", uuid, scriptPath)
log.Printf("Opened UUID %s at FS path %s\n", uuid, scriptPath)
fmt.Fprintf(response, "success: new")
}
}
Expand Down Expand Up @@ -179,7 +179,7 @@ func main() {
log.Fatalf("Error writing to file: %s\n", err)
}
} else {
fmt.Printf("Got rbx edit for unopened UUID %s\n", uuid)
log.Printf("Got rbx edit for unopened UUID %s\n", uuid)
fmt.Fprintf(response, "failure: %s is not opened by this host", uuid)
}
})
Expand Down

0 comments on commit c7e0d1d

Please sign in to comment.