add dev mode logging while testing production mode