Only issue NSLog warning in debug mode.