Skip to content

Commit a8c8d98

Browse files
committed
Fix stderr logging
1 parent 8e16a1f commit a8c8d98

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pkg/ciscofonserver/server.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ func (s *CiscoFonServer) readHandler(filename string, rf io.ReaderFrom) error {
4747
filepath := filepath.Join(s.config.String("tftp.dir"), cleanedFilename)
4848
file, err := os.Open(filepath)
4949
if err != nil {
50-
log.Printf("`TFTP` GET %s: %v", filename, err)
5150
return err
5251
}
5352
defer file.Close()
5453
_, err = rf.ReadFrom(file)
5554
if err != nil {
56-
log.Printf("TFTP GET %s: %v", filename, err)
5755
return err
5856
}
5957

@@ -158,7 +156,7 @@ func (s *CiscoFonServer) logRequest(service, method, path string, status string,
158156
Status: status,
159157
IP: ip,
160158
}
161-
log.Printf("[%s] %s %s %s %d", service, ip, method, path, status)
159+
log.Printf("[%s] %s %s %s %s", service, ip, method, path, status)
162160
connectionsMu.Lock()
163161
defer connectionsMu.Unlock()
164162
for conn := range connections {

0 commit comments

Comments
 (0)