LOG backup Always ON using Ola Hallengren database backup script does not carry out a backup
Your availability group is set to prefer backups on the secondary, and by default Ola's script is going to only run log backups on the node that is preferred.  

Use the @OverrideBackupPreference='Y' parameter in the backup command to override that setting so that it will take the log backup on the node where the script runs regardless of the backup preference setting of the availability group.