Alright, so I think this is a Salesforce bug but wanted to check with the community to see if I'm just overlooking something.
I'm trying to debug some code in production so I added a couple of system.debug lines to an existing controller and then uploaded it to Production. When I tried to deploy, it gave me a code coverage error, stating that coverage is only 51%.
When I run all of my tests in Production, code coverage is 84%. When I run all of my tests in the Sandbox, code coverage is 84%. The sandbox was refreshed yesterday and I'm only adding system.debug lines to an existing controller, so there's no way I don't have the coverage needed to deploy.
Has anyone ever ran into this before? This has to be a bug, right?