Skip to content

Commit

Permalink
Merge pull request #2746 from vasilmkd/non-daemon-thread-logger-forked
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Jan 12, 2022
2 parents e284f2c + c81cd39 commit c49c92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/jvm/src/main/scala/cats/effect/IOApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ trait IOApp {
// Return naturally from main. This allows any non-daemon
// threads to gracefully complete their work, and managed
// environments to execute their own shutdown hooks.
if (NonDaemonThreadLogger.isEnabled())
if (isForked && NonDaemonThreadLogger.isEnabled())
new NonDaemonThreadLogger().start()
else
()
Expand Down

0 comments on commit c49c92e

Please sign in to comment.