Skip to content

Commit

Permalink
Add debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
yuripourre committed Jun 27, 2017
1 parent 0a1f081 commit 1ad3cde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/harium/dotenv/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

public class Env {

public static boolean DEBUG = false;

private static final String DOT_ENV_FILENAME = ".env";
private static Map<String, String> params = new HashMap<>();

Expand All @@ -21,6 +23,9 @@ public static void loadParams(String dir) {
File f = new File(path);

if (!f.exists()) {
if (DEBUG) {
System.err.println("File not found: " + path);
}
return;
} else {
System.out.println("Loading .ENV: " + path);
Expand Down

0 comments on commit 1ad3cde

Please sign in to comment.