Fix locale key issue in xp manager
Override log level if global debug is true