Skip to content

Conversation

@JPPortier
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

return get("SINCH_PHONE_NUMBER");
}

public static void initializeLogger() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be made private

Comment on lines +93 to +95
LOGGER.config(
String.format(
"Error reading '%s' configuration file: %s", LOGGING_CONFIG_FILE, ioe.getMessage()));
Copy link
Contributor

Choose a reason for hiding this comment

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

You are using the logger to log an error about the logger that may have not been initialized. Is it ok to do that, or the error message will be invisible?

try {
// load a properties file from class path, inside static method
properties.load(Settings.class.getClassLoader().getResourceAsStream("config.properties"));
properties.load(Settings.class.getClassLoader().getResourceAsStream(CONFIG_FILE));
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: instead of throwing a NPE when the file is not found, you may check if the inputStream is not null before loading the properties and log that the config file is not found if null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants