Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Report FUNCTION_NAME as the description (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrobots committed Mar 3, 2017
1 parent cfc4f3f commit 48a9952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/agent/debuglet.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ Debuglet.createDebuggee =
}
}

if (!description && process.env.FUNCTION_NAME) {
description = 'Function: ' + process.env.FUNCTION_NAME;
}

if (description) {
desc += ' description:' + description;
}
Expand Down

0 comments on commit 48a9952

Please sign in to comment.