Skip to content

Commit 5c39b0c

Browse files
committed
fix: adding logs in the code source writter
1 parent 88fc639 commit 5c39b0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pyconverter/xml2py/utils/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23+
import logging
2324
from pathlib import Path
2425
from typing import Tuple, Union
2526

@@ -84,6 +85,12 @@ def get_warning_command_dict(yaml_path: Path) -> dict:
8485
except KeyError:
8586
warning_command_dict[command] = [message]
8687

88+
if warning_command_dict == {}:
89+
logging.info("No warning commands found in the YAML file.")
90+
91+
else:
92+
logging.info("Warning commands found in the YAML file.")
93+
8794
return warning_command_dict
8895

8996

0 commit comments

Comments
 (0)