Update the logging function to account for Jelly Bean MR2