jcxplorer/cwlogger

View on GitHub

Showing 2 of 4 total issues

Function New has 5 return statements (exceeds 4 allowed).
Open

func New(config *Config) (*Logger, error) {
    if config.Client == nil {
        return nil, errors.New("cwlogger: config missing required Client")
    }

Severity: Major
Found in cwlogger.go - About 35 mins to fix

    Method logStream.write has 5 return statements (exceeds 4 allowed).
    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,
    Severity: Major
    Found in cwlogger.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language