OnBecameInvisible() Error

So I have the following code applied to one object, and for some reason the in the log it just prints an infinite loop of invisible and visible in that order whether I am looking at it or not, any suggestions?

	function OnBecameVisible () {
	
    print("VISIBLE");

}

function OnBecameInvisible () {

    print("INVISIBLE!");

}
	function Update(){
OnBecameInvisible();
OnBecameVisible();
}

OnBecameInvisible() and OnBecameVisible() are callbacks. You don’t call them. So delete the calls in Update. Note these functions are triggered by any camera. In Unity 3.x that included the scene camera when the app was run in the editor. So if you have trouble getting these functions to fire reliably, turn the scene camera away from the action.