OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50fbf74
)
check Log.backtrace config variable to output backtrace or not
author
hylom
<hylom@users.sourceforge.jp>
Fri, 1 Dec 2017 13:04:41 +0000
(22:04 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Fri, 1 Dec 2017 13:04:41 +0000
(22:04 +0900)
src/newslash_web/lib/Newslash/Web.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Web.pm
b/src/newslash_web/lib/Newslash/Web.pm
index
7a6eff0
..
5ec125e
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Web.pm
+++ b/
src/newslash_web/lib/Newslash/Web.pm
@@
-1,7
+1,6
@@
package Newslash::Web;
use Mojo::Base 'Mojolicious';
use Mojo::Util qw(dumper);
-use Carp::Always;
use Newslash::Model;
@@
-22,6
+21,11
@@
sub startup {
}
# TODO: load/save configs with database
+ if ($app->config->{Log} && $app->config->{Log}->{backtrace}) {
+ require Carp::Always;
+ Carp::Always->import;
+ }
+
# set log file
if ($app->config->{Log} && $app->config->{Log}->{system_log}) {
# check log is writable