From 94b5bcb8f521c71f6f60a6c6455901e98f0a0455 Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Sat, 12 Jul 2008 16:52:59 +0200 Subject: [PATCH] Get rid of the tr module. If you want debugging, use eper and redbug by Mats Cronqvist. It is much better. --- Makefile | 2 +- lib/etorrent-1.0/src/etorrent.erl | 6 +----- lib/etorrent-1.0/src/tr.erl | 34 ---------------------------------- 3 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 lib/etorrent-1.0/src/tr.erl diff --git a/Makefile b/Makefile index 1c163e1..f106619 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ tags: run: libs erl $(ERL_FLAGS) -pa $(ETORRENT_LIB)/ebin \ -config $(ETORRENT_LIB)/priv/etorrent.config \ - -sname etorrent -s etorrent start_debug + -sname etorrent -s etorrent start tracer: erl -pa $(ETORRENT_LIB)/ebin -noinput \ diff --git a/lib/etorrent-1.0/src/etorrent.erl b/lib/etorrent-1.0/src/etorrent.erl index 335b136..e9be9f6 100644 --- a/lib/etorrent-1.0/src/etorrent.erl +++ b/lib/etorrent-1.0/src/etorrent.erl @@ -3,14 +3,10 @@ -include("etorrent_mnesia_table.hrl"). --export([db_initialize/0, stop/0, start/0, start_debug/0]). +-export([db_initialize/0, stop/0, start/0]). -export([start/2, stop/1]). -export([help/0, h/0, list/0, l/0, show/0, s/0, show/1, s/1]). -start_debug() -> - dbg:tracer(port, dbg:trace_port(file, "tracer.log")), - start(). - start() -> application:start(crypto), application:start(inets), diff --git a/lib/etorrent-1.0/src/tr.erl b/lib/etorrent-1.0/src/tr.erl deleted file mode 100644 index 9ba9c24..0000000 --- a/lib/etorrent-1.0/src/tr.erl +++ /dev/null @@ -1,34 +0,0 @@ -%%%------------------------------------------------------------------- -%%% File : tr.erl -%%% Author : Jesper Louis Andersen <> -%%% Description : tr - a simple tracer module based on dbg -%%% -%%% Created : 15 Jun 2008 by Jesper Louis Andersen <> -%%%------------------------------------------------------------------- --module(tr). - -%% API --export([tr/1, tr/2, flush/0, client/0]). - -%%==================================================================== -%% API -%%==================================================================== -%%-------------------------------------------------------------------- -%% Function: tr(Module, Function) -%% Description: trace Module:Function -%%-------------------------------------------------------------------- -tr(Module, Function) -> - dbg:tpl(Module, Function, [{'_',[],[{return_trace}]}]). - -tr(Module) -> - dbg:tpl(Module, [{'_',[],[{return_trace}]}]). - -flush() -> - dbg:flush_trace_port(). - -client() -> - dbg:trace_client(file, "tracer.log"). - -%%==================================================================== -%% Internal functions -%%==================================================================== -- 2.11.4.GIT