Log upon leaving installer steps as well as entering (a part of #524980).
Looks good. Martin
----- "Ales Kozumplik" <akozumpl@redhat.com> wrote:
> Also includes mentioning the fact when a step is direct.
> ---
> dispatch.py | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/dispatch.py b/dispatch.py
> index c4cfa7a..460faf1 100644
> --- a/dispatch.py
> +++ b/dispatch.py
> @@ -186,6 +186,7 @@ class Dispatcher(object):
> if self.step == None:
> self.step = self.firstStep
> else:
> + log.info("leaving (%d) step %s" %(self._getDir(),
> installSteps[self.step][0]))
> self.step = self.step + self._getDir()
>
> if self.step >= len(installSteps):
> @@ -196,10 +197,11 @@ class Dispatcher(object):
>
> if self.stepIsDirect(self.step) and not
> self.stepInSkipList(self.step):
> (stepName, stepFunc) = installSteps[self.step]
> - log.info("moving (%d) to step %s" %(self._getDir(),
> stepName))
> + log.info("moving (%d) to direct step %s"
> %(self._getDir(), stepName))
> rc = stepFunc(self.anaconda)
> if rc in [DISPATCH_BACK, DISPATCH_FORWARD]:
> self._setDir(rc)
> + log.info("leaving (%d) direct step %s"
> %(self._getDir(), stepName))
> # if anything else, leave self.dir alone
>
> self.step = self.step + self._getDir()
> --
> 1.6.2.5
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|