Skip to content

Commit

Permalink
wocommunity#1007: turned the log.warn into a log.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
renebock committed Jan 16, 2023
1 parent bd44b6c commit 62b190c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,14 +540,14 @@ public static String stringFromFile(File f, String encoding) throws IOException
* @param frameworkName name of the framework, <code>null</code> or "app"
* for the application bundle
* @param languages array of languages to get localized resource or <code>null</code>
* @return the absolutePath method off of the
* file object
* @return the absolutePath method of of the file object
* or null if the resource is contained in a jar or doesn't exist.
*/
public static String pathForResourceNamed(String fileName, String frameworkName, NSArray<String> languages) {
String path = null;
NSBundle bundle = "app".equals(frameworkName) ? NSBundle.mainBundle() : NSBundle.bundleForName(frameworkName);
if(bundle != null && bundle.isJar()) {
log.warn("Can't get path when run as jar: {} - {}", frameworkName, fileName);
log.debug("Can't get path when run as jar: {} - {}", frameworkName, fileName);
} else {
WOApplication application = WOApplication.application();
if (application != null) {
Expand Down

0 comments on commit 62b190c

Please sign in to comment.