app: added logs when the serialize env vars returns an error.