projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0319a12
)
Don't warn if caller is main
Christian Hansen [Fri, 17 Jun 2005 01:27:25 +0000 (
01:27
+0000)]
lib/Catalyst.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst.pm
b/lib/Catalyst.pm
index
55057e3
..
b3abcaf
100644
(file)
--- a/
lib/Catalyst.pm
+++ b/
lib/Catalyst.pm
@@
-134,7
+134,11
@@
sub import {
}
if ( $caller->engine ) {
- $caller->log->warn( qq/Attempt to re-initialize "$caller"/ );
+
+ unless ( $caller eq 'main' ) {
+ $caller->log->warn( qq/Attempt to re-initialize "$caller"/ );
+ }
+
return;
}