How can I stop the logging of the iOS Media Player framework for each request?

I am using iOS MediaPlayer.frameworkto retrieve data about the iTunes user library. I do this using the following code:

MPMediaQuery * allSongsQuery = [MPMediaQuery songsQuery];
NSArray * songsData = [allSongsQuery items];
//Iterate over songsData and fetch values for various keys, including title/album/artist

None of my codes are calling NSLog, however I can see that the Media Player environment logs a lot during this request:

{MediaLibrary} Database validation succeeded
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
... (continues on another 200 times)

Although this does not affect the execution of my application, it is incredibly annoying when debugging. Is there a way to stop the Media Player framework?

+3
source share

All Articles