stop log error when the gitfs verify all possible backends

Stop log error messages when testing gitfs possible backends.

this fixes #18306
Merge pull request #18708 from jeffrey4l/fix_gitfs_log

stop log error when the gitfs verify all possible backends