Add DEBUG log
This commit is contained in:
parent
810c589ec0
commit
05c7f4b9c6
1 changed files with 2 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ sub register ($$;$$)
|
||||||
|
|
||||||
my $worker = Gearman::Worker->new;
|
my $worker = Gearman::Worker->new;
|
||||||
|
|
||||||
|
log DEBUG, "Registering function $funcname on ", join(", ", @servers);
|
||||||
|
|
||||||
$worker->job_servers( @servers );
|
$worker->job_servers( @servers );
|
||||||
$worker->register_function($funcname => sub { return do_work($subref, $given_arg, $priority, @_); });
|
$worker->register_function($funcname => sub { return do_work($subref, $given_arg, $priority, @_); });
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue