Skip to content

Commit

Permalink
fix failure logging of value on channel option set
Browse files Browse the repository at this point in the history
Motivation:

The code accidentally passes channel twice instead of value, resulting in logs like:
Failed to set channel option 'SO_SNDBUF' with value '[id: 0x2c5b2eb4]' for channel '[id: 0x2c5b2eb4]'

Modifications:

Pass value instead of channel where it needs to be.

Result:

Failed to set channel option 'SO_SNDBUF' with value '0' for channel '[id: 0x9bd3c5b8]'
  • Loading branch information
boazavital authored and normanmaurer committed Mar 22, 2017
1 parent aa2f16f commit bf08ed0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ private static void setChannelOption(
}
} catch (Throwable t) {
logger.warn(
"Failed to set channel option '{}' with value '{}' for channel '{}'", option, channel, channel, t);
"Failed to set channel option '{}' with value '{}' for channel '{}'", option, value, channel, t);
}
}

Expand Down

0 comments on commit bf08ed0

Please sign in to comment.