fix: properly emit log messages