Add DEBUG log
This commit is contained in:
parent
810c589ec0
commit
05c7f4b9c6
|
@ -139,6 +139,8 @@ sub register ($$;$$)
|
|||
|
||||
my $worker = Gearman::Worker->new;
|
||||
|
||||
log DEBUG, "Registering function $funcname on ", join(", ", @servers);
|
||||
|
||||
$worker->job_servers( @servers );
|
||||
$worker->register_function($funcname => sub { return do_work($subref, $given_arg, $priority, @_); });
|
||||
|
||||
|
|
Reference in New Issue
Block a user