Skip to content

Commit 9715ea1

Browse files
committed
Fix jmathresholds + typos
1 parent 8616ee1 commit 9715ea1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/java/frameworks/client_certificate_mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (c *ClientCertificateMapperFramework) Detect() (string, error) {
2525
// Check if explicitly disabled via configuration
2626
config, err := c.loadConfig()
2727
if err != nil {
28-
c.context.Log.Warning("Failed to load ccm config: %s", err.Error())
28+
c.context.Log.Warning("Failed to load client certificate mapper config: %s", err.Error())
2929
return "", nil // Don't fail the build
3030
}
3131

src/java/frameworks/java_memory_assistant.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,13 @@ func (j *JavaMemoryAssistantFramework) loadConfig() (*jmaConfig, error) {
237237

238238
// getThresholds extracts memory threshold configuration
239239
func (j *jmaConfig) getThresholds() map[string]string {
240-
thresholds := make(map[string]string)
241-
242240
yamlHandler := common.YamlHandler{}
243241
data, _ := yamlHandler.Marshal(j.Agent.Thresholds)
244242

245243
var result map[string]string
246244
yamlHandler.Unmarshal(data, &result)
247245

248-
return thresholds
246+
return result
249247
}
250248

251249
// isEnabled checks if Java Memory Assistant is enabled

src/java/frameworks/metric_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (m *MetricWriterFramework) Detect() (string, error) {
2525
// Check if explicitly enabled via configuration
2626
config, err := m.loadConfig()
2727
if err != nil {
28-
m.context.Log.Warning("Failed to load debug config: %s", err.Error())
28+
m.context.Log.Warning("Failed to load metric writer config: %s", err.Error())
2929
return "", nil // Don't fail the build
3030
}
3131
if !config.isEnabled() {

0 commit comments

Comments
 (0)