+ Start a Discussion
Shivdeep KumarShivdeep Kumar 

code coverage and functionality due to debug log activation

Hi All,
Today I saw a weird thing in my org, my test class code coverage in sandbox org is 90% but when I tried to deploy in production my test class code coverage becomes 63%.

After activating the debug log in prod org, my test class code coverage becomes the same as sandbox org. How is it possible? due to this my code functionality is not working perfectly in prod but in the sandbox, it is working fine.

If activate the debug log in prod then functionality also works fine.

Please let me know if anyone faced this issue before.

Thanks,