fix mode for webapp production.log (#2300)