[core.logger] do not print prefix for empty log messages