Skip to content

CAMEL-18023. camel-jbang command options from application.properties#7511

Merged
mgubaidullin merged 3 commits intoapache:mainfrom
mgubaidullin:jbang-application-properties
Apr 28, 2022
Merged

CAMEL-18023. camel-jbang command options from application.properties#7511
mgubaidullin merged 3 commits intoapache:mainfrom
mgubaidullin:jbang-application-properties

Conversation

@mgubaidullin
Copy link
Contributor

@github-actions github-actions bot added the dsl label Apr 28, 2022
@github-actions
Copy link
Contributor

🚫 There are (likely) no components to be tested in this PR

@github-actions
Copy link
Contributor

🚫 There are (likely) no components to be tested in this PR

try (FileInputStream fis = new FileInputStream(defaultsFile)) {
properties.load(fis);
} catch (IOException e) {
LOG.error("Error", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am probably nitpicking a bit, but ... maybe wouldn't it be better to also log the exception message? I.e.:

LOG.error("Error reading defaults file: {}", e.getMessage, e); 

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @orpiske

@github-actions
Copy link
Contributor

🚫 There are (likely) no components to be tested in this PR

@mgubaidullin mgubaidullin merged commit ef24ea4 into apache:main Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants