Skip to content

Commit

Permalink
Fixing bug in error logger. Adding make install target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngerakines committed Feb 17, 2009
1 parent 261eda9 commit 8d5e741
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
@@ -1,7 +1,12 @@
LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`

all:
mkdir -p ./ebin/
(cd src; $(MAKE))

clean:
(cd src; $(MAKE) clean)

install: all
mkdir -p ${LIBDIR}/stateless_server-0.1/ebin
for i in ebin/*.beam; do install $$i $(LIBDIR)/stateless_server-0.1/$$i ; done
2 changes: 1 addition & 1 deletion src/stateless_server.erl
Expand Up @@ -66,7 +66,7 @@ server_loop(Module) ->
From ! {Ma, Mi}
end;
Message ->
error_logger:report([stateless_server, Module, {unknown_message, Message}])
error_logger:warning_report([stateless_server, Module, {unknown_message, Message}])
end,
stateless_server:server_loop(Module).

Expand Down

0 comments on commit 8d5e741

Please sign in to comment.