core: print environment when error detected

this will help to analyze current state from logs

Change-Id: Ia7cfbabe815bac4935967feb59fd36c50d04d646
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>