Skip to content

Commit

Permalink
Issue log work folder1 (#10669)
Browse files Browse the repository at this point in the history
* feat(jans-auth): log current folder in UserJansExtUidAttributeTest test

Signed-off-by: Yuriy Movchan <[email protected]>

* feat(jans-auth): log current folder in UserJansExtUidAttributeTest test

Signed-off-by: Yuriy Movchan <[email protected]>

---------

Signed-off-by: Yuriy Movchan <[email protected]>
  • Loading branch information
yurem authored Jan 16, 2025
1 parent 51ce4dc commit cc3ad94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public StringEncrypter getStringEncrypter() throws EncryptionException {
log.info("Current folder: {}", (new File(".").getAbsolutePath()));
System.out.println("Current folder: {}" +(new File(".").getAbsolutePath()));

FileConfiguration cryptoConfiguration = new FileConfiguration(".\\target\\conf\\salt");
FileConfiguration cryptoConfiguration = new FileConfiguration("./target/conf/salt");
String encodeSalt = cryptoConfiguration.getString("encodeSalt");

return StringEncrypter.instance(encodeSalt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

package io.jans.orm.util.properties;

import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
Expand Down Expand Up @@ -77,9 +78,9 @@ protected void loadProperties() {

this.loaded = true;
} catch (ConfigurationException ex) {
LOG.error(String.format("Failed to load '%s' configuration file from config folder", this.fileName));
LOG.error(String.format("Failed to load '%s' configuration file from config folder. Current folder: '%s'", this.fileName, (new File(".").getAbsolutePath())));
} catch (Exception e) {
LOG.error(String.format("Failed to load '%s' configuration file from config folder", this.fileName));
LOG.error(String.format("Failed to load '%s' configuration file from config folder. Current folder: '%s'", this.fileName, (new File(".").getAbsolutePath())));
LOG.error(e.getMessage(), e);
}
}
Expand Down

0 comments on commit cc3ad94

Please sign in to comment.