Fixed potential logger crash