Skip to content

fix: xmlschema log msg #2546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cve_bin_tool/validator.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Copyright (C) 2022 Anthony Harrison
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
from pathlib import Path

import xmlschema

from cve_bin_tool.log import LOGGER

# This downgrades a message during module loading.
if True: # Strange construction for pep8 compliance.
logging.getLogger("xmlschema").setLevel(logging.WARNING)
import xmlschema


def _validate_xml(filename, xsd_file):

Expand Down