Skip to content

Commit

Permalink
Use current thread to load default config
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Wurster <miwurster@googlemail.com>
  • Loading branch information
miwurster committed Aug 13, 2020
1 parent 96f243e commit 4aa993a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -102,7 +102,7 @@ void initialize() {
InputStream is = null;
YAMLConfiguration defaultConfiguration = new YAMLConfiguration();
try {
is = ClassLoader.getSystemClassLoader().getResourceAsStream("winery.yml");
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("winery.yml");
defaultConfiguration.read(is);
} catch (ConfigurationException e) {
logger.error("Error loading default configuration", e);
Expand Down

0 comments on commit 4aa993a

Please sign in to comment.