diff options
author | Luis Rascão <luis.rascao@gmail.com> | 2015-12-13 17:11:59 +0000 |
---|---|---|
committer | Luis Rascão <luis.rascao@gmail.com> | 2015-12-13 17:11:59 +0000 |
commit | ac4451ff235ded6c4358f00fe9a57b219cf3b418 (patch) | |
tree | 03b7512e04929b127edd2ea8c11183fea92c4e90 /src | |
parent | 41cff19c0e1fe44767333e6f2385efa7bfe0d8ba (diff) | |
download | rebar-ac4451ff235ded6c4358f00fe9a57b219cf3b418.tar.gz |
Provide additional debug logging on relup generation
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_upgrade.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl index 23da5a3..01edbd2 100644 --- a/src/rebar_upgrade.erl +++ b/src/rebar_upgrade.erl @@ -44,18 +44,24 @@ 'generate-upgrade'(Config0, ReltoolFile) -> %% Get the old release path {Config, ReltoolConfig} = rebar_rel_utils:load_config(Config0, ReltoolFile), + ?DEBUG("reltool.config: ~p~n", [ReltoolConfig]), TargetParentDir = rebar_rel_utils:get_target_parent_dir(Config, ReltoolConfig), TargetDir = rebar_rel_utils:get_target_dir(Config, ReltoolConfig), + ?DEBUG("target dir: ~p~n", [TargetDir]), PrevRelPath = rebar_rel_utils:get_previous_release_path(Config), OldVerPath = filename:join([TargetParentDir, PrevRelPath]), + ?DEBUG("old version path: ~p~n", [OldVerPath]), %% Run checks to make sure that building a package is possible {NewVerPath, NewName, NewVer, OldVer} = run_checks(Config, OldVerPath, ReltoolConfig), + ?DEBUG("old version: ~p~n", [OldVer]), NameVer = NewName ++ "_" ++ NewVer, OldRelName = get_old_rel_name(OldVerPath, OldVer, NewName), + ?DEBUG("new version path: ~p~n", [NewVerPath]), + ?DEBUG("old version: ~p~n", [NewVer]), %% Save the code path prior to doing anything OrigPath = code:get_path(), |