projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
prevent debug calls with expensive arguments if debugging is not enabled
[dbsrgits/SQL-Translator.git]
/
lib
/
SQL
/
Translator
/
Producer
/
GraphViz.pm
diff --git
a/lib/SQL/Translator/Producer/GraphViz.pm
b/lib/SQL/Translator/Producer/GraphViz.pm
index
f17a9d3
..
3b8ef59
100644
(file)
--- a/
lib/SQL/Translator/Producer/GraphViz.pm
+++ b/
lib/SQL/Translator/Producer/GraphViz.pm
@@
-520,7
+520,7
@@
sub produce {
debug("Processing table '$table_name'");
- debug("Fields = ", join(', ', map { $_->name } @fields));
+ debug("Fields = ", join(', ', map { $_->name } @fields)) if $DEBUG;
for my $f ( @fields ) {
my $name = $f->name or next;