summaryrefslogtreecommitdiffstats
path: root/meta.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2016-01-14 16:11:04 -0700
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2016-01-14 16:11:04 -0700
commit0f0d4c4209a902a252fc6e764c7bacf158b12954 (patch)
treeb09ccc84bbdfbbd42e9021fc9d911d176d9e7e8f /meta.pl
parent037bc83e73761411214d3963c3c17c77a853dd11 (diff)
Move channel logging hooks into the logging module, rather than calling them from the event module.
Diffstat (limited to 'meta.pl')
-rwxr-xr-xmeta.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta.pl b/meta.pl
index 3fb0824..a9fc121 100755
--- a/meta.pl
+++ b/meta.pl
@@ -106,8 +106,6 @@ sub init {
if ($::cset eq '') { $::cset = 'config-default'; }
else { $::cset = "config-$::cset"; }
ASM::XML->readXML();
- mkdir($::settings->{log}->{dir});
- $::log = ASM::Log->new($::settings->{log});
$::pass = $::settings->{pass} if $::pass eq '';
$::async = HTTP::Async->new();
$host = ${$::settings->{server}}[rand @{$::settings->{server}}];
@@ -133,8 +131,10 @@ sub init {
if (-e "debugsock") {
$conn->debugsock(1);
}
- $::inspector = ASM::Inspect->new();
+
$::event = ASM::Event->new($conn, $::inspector);
+ $::inspector = ASM::Inspect->new();
+ $::log = ASM::Log->new($conn);
$::commander = ASM::Commander->new($conn);
$::services = ASM::Services->new($conn);
ASM::Statsp->new($conn);