glGetError utility function. Uses logging.h for console output.