Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(454)

Issue 9658043: code review 9658043: log/syslog: report errors from Fprintf (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by r
Modified:
12 years, 1 month ago
Reviewers:
iant, bradfitz
CC:
golang-dev, iant
Visibility:
Public.

Description

log/syslog: report errors from Fprintf Thanks to chiparus for identifying this. Fixes issue 5541.

Patch Set 1 #

Patch Set 2 : diff -r 45468e9eae1f https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M src/pkg/log/syslog/syslog.go View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 7
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 1 month ago (2013-05-22 17:44:32 UTC) #1
iant
LGTM
12 years, 1 month ago (2013-05-22 17:59:01 UTC) #2
r
*** Submitted as https://code.google.com/p/go/source/detail?r=ac7877558dce *** log/syslog: report errors from Fprintf Thanks to chiparus for identifying ...
12 years, 1 month ago (2013-05-22 18:03:17 UTC) #3
bradfitz
I don't think this is correct. It violates the io.Writer contract, returning written n > ...
12 years, 1 month ago (2013-05-22 18:15:54 UTC) #4
r
You're right. Reverting. The issue I was trying to fix was invalid. -rob
12 years, 1 month ago (2013-05-22 18:25:03 UTC) #5
bradfitz
Could it do: _, err := fmt.Fprintf(...) if err != nil { return 0, err ...
12 years, 1 month ago (2013-05-22 18:27:09 UTC) #6
r
12 years, 1 month ago (2013-05-22 18:30:32 UTC) #7
Yes, that's what I'll do after the rollback.

On Wed, May 22, 2013 at 11:27 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> Could it do:
>
> _, err := fmt.Fprintf(...)
> if err != nil {
>     return 0, err
> }
> return len(p), nil
>
> ?
>
>
>
> On Wed, May 22, 2013 at 11:24 AM, Rob Pike <r@golang.org> wrote:
>>
>> You're right. Reverting. The issue I was trying to fix was invalid.
>>
>> -rob
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b