jcxplorer/cwlogger

View on GitHub

Showing 4 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

      Your code does not pass gofmt in 2 places. Go fmt your code!
      Open

      // Package cwlogger is a library for reliably writing logs to Amazon CloudWatch
      Severity: Minor
      Found in doc.go by gofmt

      2: cannot find package "github.com/aws/aws-sdk-go/service/cloudwatchlogs" in any of:
      Open

          "github.com/aws/aws-sdk-go/service/cloudwatchlogs"
      Severity: Minor
      Found in batch.go by govet
      Severity
      Category
      Status
      Source
      Language