jfrog / jfrog/jfrog-cli-security

Suppressing GOMAXPROCS in info log

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Go
Stars
13
Forks
50
Avg merge
3d 48m
Merged PRs (30d)
26

Description

Is there any way to suppress the Leaving GOMAXPROCS=16: CPU quota undefined from info logs. Even if you define a value for GOMAXPROCS it gets logged with an indication that is inheriting/respecting the set value. Large logs are a pain to look at.

20:49:06 [Info] [Thread 0] Indexing file: packages/microsoft.win32.systemevents/6.0.0/microsoft.win32.systemevents.6.0.0.nupkg
20:49:07 [Info] Waiting for scan to complete on JFrog Xray...
20:49:07 [Info] Waiting for scan to complete on JFrog Xray...
20:49:10 [Info] 2024/06/06 20:49:04 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined

20:49:10 [Info] [Thread 2] Indexing file: packages/mono.texttemplating/2.2.1/mono.texttemplating.2.2.1.nupkg
20:49:11 [Info] Waiting for scan to complete on JFrog Xray...
20:49:12 [Info] 2024/06/06 20:49:06 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined

20:49:12 [Info] [Thread 1] Indexing file: packages/mstest.testadapter/3.1.1/mstest.testadapter.3.1.1.nupkg
20:49:13 [Info] Waiting for scan to complete on JFrog Xray...
20:49:16 [Info] 2024/06/06 20:49:10 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined

20:49:16 [Info] [Thread 2] Indexing file: packages/mstest.testframework/3.1.1/mstest.testframework.3.1.1.nupkg
20:49:17 [Info] Waiting for scan to complete on JFrog Xray...
20:49:17 [Info] 2024/06/06 20:49:06 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the Go repository for the Leaving GOMAXPROCS=16: CPU quota undefined message and trace how it reaches the CLI's info logger. Determine the intended suppression behavior and verify that the repeated maxprocs messages no longer appear without hiding the other informational log entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.