Changed RestLogCallback listeners to a set to avoid registering the same
listener again.