fixed: Debug.setLogger... : used wrong variables
Merge origin/master