Permalink
Browse files

add misultin to app dependencies

  • Loading branch information...
1 parent 122058b commit 7059c7f5f93863293cd9dbbdeb9ed4ff195aef6d @gleber committed Apr 23, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/exat.app.src
  2. +2 −1 src/mtp.erl
View
@@ -20,7 +20,7 @@
{application, exat,
[{ mod, { exat, [] } },
{ vsn, "1.5.0" },
- { applications, [kernel, stdlib, seresye] },
+ { applications, [kernel, stdlib, seresye, misultin] },
{ description, "erlang eXperimental Agent Tool" },
{ registered, [] }
]}.
View
@@ -56,14 +56,15 @@
http(Port) ->
logger:start('HTTP-MTP'),
logger:log('HTTP-MTP',
- {"MTP Started at port ~w", [Port]}),
+ {"MTP Starting at port ~w", [Port]}),
{ok, Hostname} = inet:gethostname(),
{ok, HostEnt} = inet:gethostbyname(Hostname),
MTPAddress = lists:flatten(["http://",
HostEnt#hostent.h_name, ":",
integer_to_list(Port), "/acc"]),
seresye:assert(agent_registry,
{mtp_address, MTPAddress}),
+ logger:log('HTTP-MTP', {"Handing things over to misultin", []}),
misultin:start_link([{port, Port},
{loop, fun handle_http/1}]).

0 comments on commit 7059c7f

Please sign in to comment.