Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Aug 5, 2022
1 parent 88d424e commit dfba9bf
Showing 1 changed file with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,25 @@ public static boolean hasConnectionString() {
public static void configureOnce() {
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): enter");
if (configure != null) {
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): configure != null");
if (!hasConnectionString()) {
try {
if (configure != null) {
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): !hasConnectionString()");
configure.run();
.warn("AzureFunctions.configureOnce(): configure != null");
if (!hasConnectionString()) {
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): !hasConnectionString()");
configure.run();
}
configure = null;
}
configure = null;
} catch (Throwable t) {
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): error " + t);
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME).warn(t.getMessage(), t);
} finally {
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): exit");
}
LoggerFactory.getLogger(DiagnosticsHelper.DIAGNOSTICS_LOGGER_NAME)
.warn("AzureFunctions.configureOnce(): exit");
}

private AzureFunctions() {}
Expand Down

0 comments on commit dfba9bf

Please sign in to comment.