}
}
-use MojoFacets::Plugin::NYTProf;
-
# This method will run once at server start
sub startup {
my $self = shift;
save_tx( $self, $tx );
}
);
-
- MojoFacets::Plugin::NYTProf->register( $self );
+
+ eval 'use MojoFacets::Plugin::NYTProf';
+ if ( $@ ) {
+ warn "profile disabled: $@" if $@;
+ } else {
+ MojoFacets::Plugin::NYTProf->register( $self );
+ }
}