File: logging_utils.py

package info (click to toggle)
python-pydub 0.24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 260 kB
  • sloc: python: 3,047; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""

"""
import logging

converter_logger = logging.getLogger("pydub.converter")

def log_conversion(conversion_command):
    converter_logger.debug("subprocess.call(%s)", repr(conversion_command))

def log_subprocess_output(output):
    if output:
        for line in output.rstrip().splitlines():
            converter_logger.debug('subprocess output: %s', line.rstrip())