You shouldn't have debugging code in master.  IE, for example, doesn't have console and your CI might not either.