Logging finally works as intended.