Showing 2 of 4 total issues
Function New
has 5 return statements (exceeds 4 allowed). Open
Open
func New(config *Config) (*Logger, error) {
if config.Client == nil {
return nil, errors.New("cwlogger: config missing required Client")
}
Method logStream.write
has 5 return statements (exceeds 4 allowed). Open
Open
func (ls *logStream) write(b []*cloudwatchlogs.InputLogEvent) error {
req, _ := ls.logger.svc.PutLogEventsRequest(&cloudwatchlogs.PutLogEventsInput{
LogGroupName: ls.logger.name,
LogStreamName: ls.name,
LogEvents: b,