(maint) Fix debug and error output

Every time we did set up a zone we crashed at the debug line. Now it works
Merge pull request #3244 from kylog/sulaweyo-patch-1

(maint) Fix debug and error output