Logentries line-only logopt fix to maintain backwards compatibility
Changed logic to ignore empty value
Fixes
@@ -50,9 +50,11 @@ func New(info logger.Info) (logger.Logger, error) {
return nil, errors.Wrap(err, "error connecting to logentries")
}
var lineOnly bool
+ if info.Config[lineonly] != "" {
if lineOnly, err = strconv.ParseBool(info.Config[lineonly]); err != nil {
return nil, errors.Wrap(err, "error parsing lineonly option")
}
+ }
return &logentries{
containerID: info.ContainerID,
containerName: info.ContainerName,
