2015-08-15 43 views
1

部署Perl Dancer應用程序。看來,每一個舞者「前進」時Perl Dancer'forward'在部署在uWSGI中時會引發警告

http://search.cpan.org/~yanick/Dancer-1.3140/lib/Dancer.pm#forward

一個uWSGI部署的應用程序中,uWSGI記錄此警告,即使正向工作得很好:

跟蹤在(EVAL 839開始)line 1 main :: ANON('Dancer :: Continuation :: Route :: Forwarded = HASH(0x65e4d60)')在/usr/share/perl5/Dancer/Continuation.pm行中調用12 Dancer :: Continuation :: throw('Dancer :: Continuation :: Route :: Forwarded = HASH(0x65e4d60)')在/usr/share/perl5/Dancer.pm處調用line 151 Dancer :: forward('/ error/msg/Unknown + user')在/home/i2/www/lib/user/profile.pm行調用103 user :: profile :: ANON at/usr /share/perl5/Dancer/Route.pm line 262 Dancer :: Route :: execute('Dancer :: Route = HASH(0x5b40ca0)')在/usr/share/perl5/Dancer/Route.pm線上調用177 Dancer :: Route :: try {...} at /usr/local/share/perl/5.18.2/Try/Tiny.pm line 76 eval {...}位於/ usr/local/share/perl/5.18.2/Try/Tiny.pm line 72 Try/Tiny :: try('CODE(0x275a590)','Try :: Tiny :: Catch = REF(0x65e4cb8)')在/ usr/share/perl5中調用/Dancer/Route.pm line 191 Dancer :: Route :: run('Dancer :: Route = HASH(0x5b40ca0)','Dancer :: Request = HASH(0x2266fb0)')在/ usr/share/perl5/Dancer/Renderer.pm line 135 Dan cer :: Renderer :: try {...}位於/usr/local/share/perl/5.18.2/Try/Tiny.pm 81行 eval {...}位於/ usr/local/share/perl/5.18.2/Try/Tiny.pm line 72 Try/Tiny :: try('CODE(0x60a4458)','Try :: Tiny :: Catch = REF(0x65e4ac0)')在/ usr/share/perl5中調用/Dancer/Renderer.pm line 144 Dancer :: Renderer :: get_action_response('Dancer :: Renderer')在/usr/share/perl5/Dancer/Renderer.pm行31 Dancer :: Renderer :: render_action(' Dancer :: Renderer')在/usr/share/perl5/Dancer/Handler.pm 84行呼叫 Dancer :: Handler :: try {...} at /usr/local/share/perl/5.18.2/Try /Tiny.pm line 76 eval {...} at /usr/local/share/perl/5.18.2/Try/Tiny.pm line 72 Try :: Tiny :: try('CODE(0x1b5cfa8)', 'Try :: Tiny :: Catch = REF(0x60a4350)')在/usr/share/perl5/Dancer/Handler.pm行113Dancer :: Handler :: render_request('Dancer :: Request = HASH(0x2266fb0)')在/usr/share/perl5/Dancer/Handler.pm line 76 Dancer :: Handler :: handle_request('Dancer :: Handler :: PSGI = HASH(0x5f3f150)','Dancer :: Request = HASH(0x2266fb0)')在/usr/share/perl5/Dancer/Handler.pm line 123處調用 Dancer :: Handler :: ANON所謂的在分格 'HASH(0xe4e720)')/ app.pl線0 的eval {...}在分格/ app.pl線0

我已經啓用PCRE。我確信這是因爲在安裝時PCRE = True,並且我沒有收到警告。

有什麼想法?我顯然可以忽略,但我想確保我沒有創造競爭條件,我也只是想幹淨的代碼。

+1

試試[email protected]郵寄地址: – ysth

+1

或irc.perl.org上的#dancer。核心開發人員響應速度非常快。 – simbabque

回答

0

回答我自己的問題,問題似乎是由forward內的異常引發的。增加:

perl-no-die-catch = true 

到uwsgi vassal初始化文件似乎解決了這個問題。

相關問題