I have the following class:
@RestResource(urlMapping='/myservice')
global with sharing class MyService {
@HttpPost
global static String newMessage() {
RestRequest req = RestContext.request;
System.debug(LoggingLevel.ERROR, 'MyService.newMessage body:\n ' + req.requestBody);
return 'Testing... 1,2,3';
}
}
I can't find the debug statement anywhere. I tried adding my user to the debug logs monitored users and tried using the Developer Console. I tried everything mentioned here: Debug not working? I know the class is running because I tested the service and I get the response "Testing... 1,2,3".