made both roles log properly