Skip to content

Commit

Permalink
Item13897: Debug printing added.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 24, 2016
1 parent f4ea0f9 commit 5346abe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/lib/Foswiki/Aux/Dependencies.pm
Expand Up @@ -111,6 +111,7 @@ use File::Spec ();
use File::Path qw(make_path);

our ( $rootDir, @messages, $OK );
my $DEBUG = $ENV{FOSWIKI_ASSERTS};

sub import {
my $target = shift;
Expand Down Expand Up @@ -187,6 +188,11 @@ sub _msg {
push @messages, @_;
}

sub _dbg {
return unless $DEBUG;
print STDERR @_;
}

sub _say {
my $profile = shift;
if ( $profile->{verbose} ) {
Expand Down Expand Up @@ -754,6 +760,8 @@ sub installDependencies {
my $optional = ( $depEntry->{fromExt} && $extOptional )
|| $depEntry->{description} !~ /^required/i;

_dbg("Checking for $depEntry->{module} from $depEntry->{source}\n");

# NOTE Only dependencies of the core or those defined by depFileList
# profile key are considered really required. If a dependency was picked
# from an extension then it could ignored if failed verification.
Expand Down

0 comments on commit 5346abe

Please sign in to comment.