fix failure logging of value on channel option set

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]'
This commit is contained in:
Boaz Avital 2017-03-20 14:30:23 -07:00 committed by Norman Maurer
parent aa2f16f314
commit bf08ed0b93

View File

@ -461,7 +461,7 @@ public abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C ext
}
} 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);
}
}