sub {
my ($tag, $thing) = @_;
my ($part) = split /\./, $tag;
- return unless $self->trace_these->{$part} or $ENV{DX_TRACE};
+ my $traces = $self->trace_these;
+ return unless $traces->{$part} or $traces->{'*'} or $ENV{DX_TRACE};
my $dp = deparse($thing);
$dp =~ s/\n$//;
warn "${dp}\n";
my ($self, @changes) = @_;
my %trace = %{$self->trace_these};
foreach my $change (@changes) {
- if ($change =~ /^\+?(\w+)/) {
+ if ($change =~ /^\+?(\S+)/) {
$trace{$1} = 1;
- } elsif ($change =~ /^-(\w+)/) {
+ } elsif ($change =~ /^-(\S+)/) {
delete $trace{$1};
}
}