- 
                Notifications
    
You must be signed in to change notification settings  - Fork 16
 
          chore: Reuse DotEnv instance and reduce log messages
          #635
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
        
          
                core/src/main/java/com/sap/ai/sdk/core/DestinationResolver.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …cessor); And consider log level dynamically
…der' into cache-aicore-service-binding-loader
DotEnv instance and reduce log messages
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But there are conflicts to resolve
| final String logMessage = | ||
| "Found a service key in environment variable {}.\nUsing a service key is recommended for local testing only.\nBind the AI Core service to the application for productive usage.\n"; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(preference)
Here is a shorter version.
| final String logMessage = | |
| "Found a service key in environment variable {}.\nUsing a service key is recommended for local testing only.\nBind the AI Core service to the application for productive usage.\n"; | |
| final String logMessage = | |
| "Service key found in env {}. Recommended for local testing only. Prefer service binding in production."; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Preference)
I like the longer message as it is more descriptive and (I think) clearer for the user what to do. But I would remove the newlines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the newlines, prefer the "longer" version a little more as it is very precise and has a call to action.
…binding-loader # Conflicts: # docs/release_notes.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Context
Related:
https://github.com/SAP/ai-sdk-java-backlog/issues/295
Feature scope:
Definition of Done
Tests cover the scope aboveError handling created / updated & covered by the tests aboveAligned changes with the JavaScript SDKDocumentation updated