File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ func NewJavaOptsFramework(ctx *common.Context) *JavaOptsFramework {
2626 return & JavaOptsFramework {context : ctx }
2727}
2828
29- // Detect always returns true (universal framework for JAVA_OPTS configuration)
29+ // Detect returns a positive result if loadConfig() finds settings (universal framework for JAVA_OPTS configuration)
3030func (j * JavaOptsFramework ) Detect () (string , error ) {
3131 // Check if there's any configuration to apply
3232 config , err := j .loadConfig ()
3333 if err != nil {
34- j .context .Log .Debug ("Failed to load java_opts config: %s" , err .Error ())
34+ // if detect "fails" Finalize() is not called so log parse failures as warning
35+ j .context .Log .Warning ("Failed to load java_opts config: %s" , err .Error ())
3536 return "" , nil
3637 }
3738
You can’t perform that action at this time.
0 commit comments