Anonymous Apex not showing log
Nishant Goswami reported in #17:
Good Morning Scott, Apparently your log level functionality is not working in Anonymous Apex. Thanks!
I will use this new issue to track that bug since the other reflects the resolved initial functionality.
Comments (3)
-
reporter -
reporter I can see what's happening now, at least in my case. I'm setting a TraceFlag to capture the debug log, but there's an existing TraceFlag that was created more than 24 hours ago. I'm trying to update the existing one but it's giving back the error:
[ 67092] WARN - inatedcloud.client.ApexLogUtil - Failed to create trace flag FIELD_INTEGRITY_EXCEPTION - Maximum expiration date exceeded. ExpirationDate must be less than 24 hours from now or StartDate.: Expiration Date; fields = ExpirationDate
I've just submitted a fix for this that deletes any such old trace flag and replaces it with a new one. As noted above, this fix will be included in the next release. In the interim, you should be able to work around this issue by logging into the target org using the Developer Console and removing that old trace flag.
-
reporter - changed status to resolved
Fix delivered in 1.6.1.0.
- Log in to comment
I was just able to reproduce this in a sandbox org. Should be pretty easy to track down now and include a fix in the next release (which should be coming in the next day or two).