Fixed false positive ignoredReturnValue on unknown member function log() (#6197)