diff --git a/exiftool/exiftool.py b/exiftool/exiftool.py index ca0f304..ad313dd 100644 --- a/exiftool/exiftool.py +++ b/exiftool/exiftool.py @@ -368,7 +368,7 @@ def executable(self, new_executable: Union[str, Path]) -> None: # absolute path is returned self._executable = str(abs_path) - if self._logger: self._logger.info(f"Property 'executable': set to \"{abs_path}\"") + if self._logger: self._logger.debug(f"Property 'executable': set to \"{abs_path}\"") # ---------------------------------------------------------------------------------------------------------------------- @@ -428,7 +428,7 @@ def block_size(self, new_block_size: int) -> None: self._block_size = new_block_size - if self._logger: self._logger.info(f"Property 'block_size': set to \"{new_block_size}\"") + if self._logger: self._logger.debug(f"Property 'block_size': set to \"{new_block_size}\"") # ---------------------------------------------------------------------------------------------------------------------- @@ -476,7 +476,7 @@ def common_args(self, new_args: Optional[List[str]]) -> None: else: raise TypeError("common_args not a list of strings") - if self._logger: self._logger.info(f"Property 'common_args': set to \"{self._common_args}\"") + if self._logger: self._logger.debug(f"Property 'common_args': set to \"{self._common_args}\"") # ---------------------------------------------------------------------------------------------------------------------- @@ -522,7 +522,7 @@ def config_file(self, new_config_file: Optional[Union[str, Path]]) -> None: else: self._config_file = str(new_config_file) - if self._logger: self._logger.info(f"Property 'config_file': set to \"{self._config_file}\"") + if self._logger: self._logger.debug(f"Property 'config_file': set to \"{self._config_file}\"") @@ -863,7 +863,7 @@ def run(self) -> None: self.terminate() raise ExifToolVersionError(f"Error retrieving Exiftool info. Is your Exiftool version ('exiftool -ver') >= required version ('{constants.EXIFTOOL_MINIMUM_VERSION}')?") - if self._logger: self._logger.info(f"Method 'run': Exiftool version '{self._ver}' (pid {self._process.pid}) launched with args '{proc_args}'") + if self._logger: self._logger.debug(f"Method 'run': Exiftool version '{self._ver}' (pid {self._process.pid}) launched with args '{proc_args}'") # currently not needed... if it passes -ver check, the rest is OK @@ -933,7 +933,7 @@ def terminate(self, timeout: int = 30, _del: bool = False) -> None: self._flag_running_false() # TODO log / return exit status from exiftool? - if self._logger: self._logger.info("Method 'terminate': Exiftool terminated successfully.") + if self._logger: self._logger.debug("Method 'terminate': Exiftool terminated successfully.") @@ -1048,7 +1048,7 @@ def execute(self, *params: Union[str, bytes], raw_bytes: bool = False) -> Union[ self._process.stdin.write(cmd_bytes) self._process.stdin.flush() - if self._logger: self._logger.info("Method 'execute': Command sent = {}".format(cmd_params[:-1])) # logs without the -execute (it would confuse people to include that) + if self._logger: self._logger.debug("Method 'execute': Command sent = {}".format(cmd_params[:-1])) # logs without the -execute (it would confuse people to include that) # ---------- read output from exiftool process until special sequences reached ----------