I'm attempting to ascertain if a block of code is running in System mode via the Debug Logs
I have log entries which appear as such:
21:26:05.741 (2741491000)|SYSTEM_MODE_ENTER|true
..
..
21:26:05.741 (2741491000)|SYSTEM_MODE_EXIT|true
And
21:26:05.741 (2741491000)|SYSTEM_MODE_ENTER|false
..
..
21:26:05.741 (2741491000)|SYSTEM_MODE_EXIT|false
And on inspection these don't seem to clearly indicate when I am entering system mode or not.
Now, the salesforce documentation unhelpfully states that 'the Mode name' is logged with this line:
SYSTEM_MODE_ENTER Mode name System INFO and above
SYSTEM_MODE_EXIT Mode name System INFO and above
Which taken at face value means the mode name is 'true' or 'false' (?)
How should I interpret this? Is everything between 'SYSTEM_MODE_ENTER' & SYSTEM_MODE_EXIT in system mode, what does the 'true'/'false' mean?
Thanks.
with sharing
orwithout sharing
.