[common] fix logging macros in non-mpi case