Skip to content

Commit

Permalink
add function-name reference with function failure log (apache#2246)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored and srkukarni committed Jul 27, 2018
1 parent 8318977 commit 4544f6e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public void start() throws Exception {
@Override
public void run() {
if (!runtime.isAlive()) {
log.error("Function Container is dead with exception", runtime.getDeathException());
log.error("[{}-{}] Function Container is dead with exception",
instanceConfig.getFunctionDetails().getName(), instanceConfig.getInstanceId(),
runtime.getDeathException());
log.error("Restarting...");
// Just for the sake of sanity, just destroy the runtime
runtime.stop();
Expand Down

0 comments on commit 4544f6e

Please sign in to comment.