Problem/Motivation
Error: Call to a member function getDisplayName() on null in Drupal\ultimate_cron\Commands\UltimateCronCommands->unlock() (line 416 of /Users/dieterholvoet/Projects/sites-minsky/hlwt/web/modules/contrib/ultimate_cron/src/Commands/UltimateCronCommands.php)
Steps to reproduce
Run drush cron:unlock <some-unfinished-cron-job-name>.
Proposed resolution
Remove this logging, just after there's Cron job @name unlocked which seems enough to me. The user is always anonymous in Drush context anyway.
Issue fork ultimate_cron-3262872
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dieterholvoet commentedComment #4
dieterholvoet commentedAnything preventing this from getting merged? Would you rather we keep the warning log?
Comment #5
berdirIndentation seems off?
I'm unsure how much logging we should have, but I'm tempted to just keep it and replace the global user with the current user, much smaller change.
Comment #6
dieterholvoet commentedThe current user is always anonymous in Drush context though, so don't think that makes much sense. I fixed the indentation.
Comment #7
berdirThat's true, I missed that this code is only about drush and only logs to drush logger, the log entry resume/finish stuff confused me, I thought that was operating on that.
Merging...