Skip to content

Commit

Permalink
TEMPORARY
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Aug 9, 2023
1 parent 1585293 commit 5e0c55a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,19 @@ public void transform(TypeTransformer transformer) {

@SuppressWarnings({"unused", "PrivateConstructorForUtilityClass"})
public static class ExecuteAdvice {
@SuppressWarnings("SystemOut")
@Advice.OnMethodExit(suppress = Throwable.class)
public static void methodExit() {

System.out.println("AzureWebJobsStorage: " + System.getenv("AzureWebJobsStorage"));

if (System.getenv("AzureWebJobsStorage") == null) {
// specialization hasn't occurred yet, and this is just a fake warmup request
System.out.println("Specialization hasn't occurred yet");
return;
}

System.out.println("Calling AzureFunctions.configureOnce()");
AzureFunctions.configureOnce();
}
}
Expand Down

0 comments on commit 5e0c55a

Please sign in to comment.