print less debug information when not in debug mode