moved logs from pubsub into a logger