Fixed loging security issue