FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Is there a way to turn off logs? · Issue #340 · semantic-release/commit-analyzer · GitHub

Repository navigation

Is there a way to turn off logs? #340

Description

Since every commit being analyzed is logged (with the description as well as the commit message) we sometimes ned up with thousands of lines of logs in our GH Actions consoles when merging together multiple branches... to the point where the browser almost crashes.

Activity

  1. jveldboom commented on Feb 1, 2023

    You should be able to turn off logging by setting the logger to return undefined or true.

    Something like this:

    const context = {
      commits: [],
      logger: {
        log: () => undefined
      }
    }
    let bump = await commit.analyzeCommits(pluginConfig, context)
    
    // or one line
    let bump = await commit.analyzeCommits(pluginConfig, { commits, logger: { log: () => undefined } })

    For more context:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL