summaryrefslogtreecommitdiff
path: root/lib/Multi
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-04-27 18:41:18 +0200
committerYorhel <git@yorhel.nl>2015-04-27 18:41:31 +0200
commitb41e61bb5acf7591a16212d5cfb17e0f809a15f7 (patch)
tree1577ec77ada543fe81a736bc453bac5b0e5a09d7 /lib/Multi
parent03a27d8ece859af9cd1c27035a8e4feec415a9de (diff)
Multi::Core: Make log level configurable
I probably don't want to have the 'trace' log level on the actual server.
Diffstat (limited to 'lib/Multi')
-rw-r--r--lib/Multi/Core.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Multi/Core.pm b/lib/Multi/Core.pm
index 3244927e..7bffef52 100644
--- a/lib/Multi/Core.pm
+++ b/lib/Multi/Core.pm
@@ -122,7 +122,7 @@ sub run {
die "PID file already exists\n" if -e $pidfile;
$stopcv = AE::cv;
- AnyEvent::Log::ctx('Multi')->attach(AnyEvent::Log::Ctx->new(level => 'trace', log_to_file => $VNDB::M{log_dir}.'/multi.log'));
+ AnyEvent::Log::ctx('Multi')->attach(AnyEvent::Log::Ctx->new(level => $VNDB::M{log_level}, log_to_file => $VNDB::M{log_dir}.'/multi.log'));
#log_cb => sub {
# open(my $F, '>>:utf8', $VNDB::M{log_dir}.'/multi.log');
# print $F $_[0];