debugging excessive cust_pkg->cust_main calls, RT#28526
[freeside.git] / FS / FS / cust_pkg.pm
index 8bf98e6..14555dd 100644 (file)
@@ -3723,6 +3723,7 @@ Returns the parent customer object (see L<FS::cust_main>).
 
 sub cust_main {
   my $self = shift;
+  cluck 'cust_pkg->cust_main called' if $DEBUG;
   qsearchs( 'cust_main', { 'custnum' => $self->custnum } );
 }