Skip to content

Commit d924ed3

Browse files
authored
fix: log earlier the error (#1173)
1 parent ceef792 commit d924ed3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/supertokens/Main.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public void start(String[] args) {
121121
CLIOptions.load(this, args);
122122
init();
123123
} catch (Exception e) {
124+
Logging.error(this, TenantIdentifier.BASE_TENANT, "What caused the crash: " + e.getMessage(), true,
125+
e);
124126
ProcessState.getInstance(this).addState(ProcessState.PROCESS_STATE.INIT_FAILURE, e);
125127
throw e;
126128
}

0 commit comments

Comments
 (0)