improved logging for production