diff options
| author | 2016-01-14 16:11:04 -0700 | |
|---|---|---|
| committer | 2016-01-14 16:11:04 -0700 | |
| commit | 0f0d4c4209a902a252fc6e764c7bacf158b12954 (patch) | |
| tree | b09ccc84bbdfbbd42e9021fc9d911d176d9e7e8f /meta.pl | |
| parent | 037bc83e73761411214d3963c3c17c77a853dd11 (diff) | |
Move channel logging hooks into the logging module, rather than calling them from the event module.
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
