aboutsummaryrefslogtreecommitdiffstats
path: root/src/relx.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2013-10-14 14:45:05 -0700
committerEric <[email protected]>2013-10-14 14:45:05 -0700
commit53af44d28ee92272911192115c5352e26516e0b3 (patch)
tree62bbe99b8e88f7587ecf1a1c3c55495cdce8bac0 /src/relx.erl
parentd8fe19483d1afe15017709058f330ac132e4029a (diff)
downloadrelx-53af44d28ee92272911192115c5352e26516e0b3.tar.gz
relx-53af44d28ee92272911192115c5352e26516e0b3.tar.bz2
relx-53af44d28ee92272911192115c5352e26516e0b3.zip
remove rlx log and use ec_cmd_log instead
Diffstat (limited to 'src/relx.erl')
-rw-r--r--src/relx.erl32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/relx.erl b/src/relx.erl
index 7b09751..1ac91d9 100644
--- a/src/relx.erl
+++ b/src/relx.erl
@@ -81,7 +81,7 @@ main(Args) ->
%% @param LibDirs - The library dirs that should be used for the system
%% @param OutputDir - The directory where the release should be built to
%% @param Configs - The list of config files for the system
--spec do(atom(), string(), [goal()], [file:name()], rlx_log:log_level(),
+-spec do(atom(), string(), [goal()], [file:name()], ec_cmd_log:log_level(),
[file:name()], file:name() | undefined) ->
ok | error() | {ok, rlx_state:t()}.
do(RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, Config) ->
@@ -99,8 +99,8 @@ do(RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, Config) ->
%% @param OutputDir - The directory where the release should be built to
%% @param Configs - The list of config files for the system
-spec do(file:name(), atom(), string(), [goal()], [file:name()],
- rlx_log:log_level(), [file:name()], file:name() | undefined) ->
- ok | error() | {ok, rlx_state:t()}.
+ ec_cmd_log:log_level(), [file:name()], file:name() | undefined) ->
+ ok | error() | {ok, rlx_state:t()}.
do(RootDir, RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, Configs) ->
do(RootDir, RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, [], Configs).
@@ -116,8 +116,8 @@ do(RootDir, RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, Configs) ->
%% @param Overrides - A list of overrides for the system
%% @param Configs - The list of config files for the system
-spec do(file:name(), atom(), string(), [goal()], [file:name()],
- rlx_log:log_level(), [file:name()], [{atom(), file:name()}], file:name() | undefined) ->
- ok | error() | {ok, rlx_state:t()}.
+ ec_cmd_log:log_level(), [file:name()], [{atom(), file:name()}], file:name() | undefined) ->
+ ok | error() | {ok, rlx_state:t()}.
do(RootDir, RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, Overrides, Config) ->
do([{relname, RelName},
{relvsn, RelVsn},
@@ -221,11 +221,11 @@ format_error({error, {Module, Reason}}) ->
%% internal api
%%============================================================================
run_relx_process(State) ->
- rlx_log:info(rlx_state:log(State), "Starting relx build process ..."),
- rlx_log:debug(rlx_state:log(State),
- fun() ->
- rlx_state:format(State)
- end),
+ ec_cmd_log:info(rlx_state:log(State), "Starting relx build process ..."),
+ ec_cmd_log:debug(rlx_state:log(State),
+ fun() ->
+ rlx_state:format(State)
+ end),
run_providers(State).
%% @doc for now the 'config' provider is special in that it generates the
@@ -269,16 +269,16 @@ run_providers(ConfigProvider, Providers, State0) ->
run_provider(_Provider, Error = {error, _}) ->
Error;
run_provider(Provider, {ok, State0}) ->
- rlx_log:debug(rlx_state:log(State0), "Running provider ~p~n",
- [rlx_provider:impl(Provider)]),
+ ec_cmd_log:debug(rlx_state:log(State0), "Running provider ~p~n",
+ [rlx_provider:impl(Provider)]),
case rlx_provider:do(Provider, State0) of
{ok, State1} ->
- rlx_log:debug(rlx_state:log(State0), "Provider successfully run: ~p~n",
- [rlx_provider:impl(Provider)]),
+ ec_cmd_log:debug(rlx_state:log(State0), "Provider successfully run: ~p~n",
+ [rlx_provider:impl(Provider)]),
{ok, State1};
E={error, _} ->
- rlx_log:debug(rlx_state:log(State0), "Provider (~p) failed with: ~p~n",
- [rlx_provider:impl(Provider), E]),
+ ec_cmd_log:debug(rlx_state:log(State0), "Provider (~p) failed with: ~p~n",
+ [rlx_provider:impl(Provider), E]),
E
end.