log function will now depend on the deployment state being development