Skip to content

Commit 4909877

Browse files
authored
pyroscope.java: Fix java log level parameter (#4440)
* pyroscope.java: Fix java log level parameter The version bundled of the async profiler has no loglevel parameter: ``` ts=2025-09-16T08:16:50.898924708Z level=error component_path=/profiling.feature component_id=pyroscope.java.java_pods pid=1184752 err="failed to start: asprof failed to run: asprof failed to run /tmp/alloy-asprof-ae0261b1093f2bc4df44a87300fef98dcdebccb5/bin/asprof: exit status 1 Unrecognized option: --loglevel\n" ``` * Quiet is not a valid argument for the async-profiler cli It can only be used for attaching using agent
1 parent 863b154 commit 4909877

File tree

1 file changed

+1
-4
lines changed
  • internal/component/pyroscope/java

1 file changed

+1
-4
lines changed

internal/component/pyroscope/java/loop.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ func (p *profilingLoop) start() error {
245245
argv = append(argv, "--lock", cfg.Lock)
246246
}
247247
if cfg.LogLevel != "" {
248-
argv = append(argv, "--loglevel", cfg.LogLevel)
249-
}
250-
if cfg.Quiet {
251-
argv = append(argv, "--quiet")
248+
argv = append(argv, "-L", cfg.LogLevel)
252249
}
253250
argv = append(argv,
254251
"start",

0 commit comments

Comments
 (0)