Skip to content

Commit

Permalink
Change logging level from INFO to DEBUG for some less interesting mes…
Browse files Browse the repository at this point in the history
…sages
  • Loading branch information
schroeer committed Feb 27, 2025
1 parent e54f96c commit 89a8483
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exiftool/exiftool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"")


# ----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -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}\"")


# ----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -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}\"")


# ----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -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}\"")



Expand Down Expand Up @@ -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 ----------
Expand Down

0 comments on commit 89a8483

Please sign in to comment.