4

This is a simple question, but it keeps bothering me and my logs.

I have a config:

akka {
  log-dead-letters-during-shutdown = off
  log-dead-letters = off
}

My program ends with akkaSystem.terminate()

I'm pretty sure that config is loaded to the system. I've tried different combinations with false or 0 instead of off. Nothing helps and my logs are getting filled with dead letters when the scheduled worker stops every 10 minutes.

This works in both dev and prod environments.

Jeffrey Chung
  • 19,319
  • 8
  • 34
  • 54
Konstantin Bodnia
  • 1,372
  • 3
  • 20
  • 43

1 Answers1

4

The problem was not about my own actor system, it was about reactive mongo which MongoDriver is using its own actor system and its own config.

(I am using mongo for persistence)

It must be like this:

mongo-async-driver {
  akka {
    log-dead-letters-during-shutdown = off
    log-dead-letters = 0
  }
}
Konstantin Bodnia
  • 1,372
  • 3
  • 20
  • 43