Skip to content

Commit

Permalink
supervision logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Apr 30, 2021
1 parent 5f26f45 commit a793745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actor/actor_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ func (ctx *actorContext) finalizeStop() {

func (ctx *actorContext) EscalateFailure(reason interface{}, message interface{}) {

//debug setting, allows to output supervision failures in console/error level
if ctx.actorSystem.Config.DeveloperSupervisionLogging {
fmt.Println("[Supervision] Actor:", ctx.self, " failed with message:", message, " exception:", reason)
plog.Error("[Supervision]", log.Stringer("actor", ctx.self), log.Object("message", message), log.Object("exception", reason))
Expand Down

0 comments on commit a793745

Please sign in to comment.