Logging duplicates and errors to /tmp