I tried to hide the current revision of a page, and as such the action failed. However, MediaWiki still created a log for that "deletion".
https://pt.wikipedia.org/w/index.php?title=Especial:Restaurar&target=Wikip%C3%A9dia%3AP%C3%A1gina_de_testes%2F1
It should create a log entry only if there was indeed something deleted.