Log Message out of control

hi peopple , recently i have been presenting trouble with some log file that are literally eating my disk space, these files are locate in var/log/ , ad the size of them increased over 100 gb , whren y type cat to seee what are inside of these files it show me this:

php: /var/lib/asterisk/agi-bin/phpagi-asmanager.php[227]: feof(): supplied argument is not a valid stream resource

what could be a possible solution to stop that error, is it a bug? is this something dangeroues? i already look for solutions like modify asmanager.php to stop this error but i dont know … please help me :sunny: