python4cpm 1.0.26__tar.gz → 1.0.27__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python4cpm
3
- Version: 1.0.26
3
+ Version: 1.0.27
4
4
  Summary: Python for CPM
5
5
  Author-email: Gonzalo Atienza Rela <gonatienza@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python4cpm"
7
- version = "1.0.26"
7
+ version = "1.0.27"
8
8
  description = "Python for CPM"
9
9
  authors = [
10
10
  { name = "Gonzalo Atienza Rela", email = "gonatienza@gmail.com" }
@@ -3,6 +3,7 @@ import sys
3
3
  import atexit
4
4
  from python4cpm.secrets import Secret, Secrets
5
5
  from python4cpm.args import Args
6
+ from python4cpm.crypto import Crypto
6
7
  from python4cpm.logger import Logger
7
8
 
8
9
 
@@ -92,12 +93,15 @@ class Python4CPM:
92
93
  _key = key.strip('_')
93
94
  if value:
94
95
  if not isinstance(value, Secret):
95
- logging_value = value
96
+ logging_value = f"'{value}'"
96
97
  else:
97
- logging_value = "[SET]"
98
+ if Crypto.ENABLED is True:
99
+ logging_value = "[ENCRYPTED]"
100
+ else:
101
+ logging_value = "[SET]"
98
102
  else:
99
103
  logging_value = "[NOT SET]"
100
- self.log_debug(f"{_key} -> '{logging_value}'")
104
+ self.log_debug(f"{_key} -> {logging_value}")
101
105
 
102
106
  def close_fail(self, unrecoverable: bool = False) -> None:
103
107
  if unrecoverable is False:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python4cpm
3
- Version: 1.0.26
3
+ Version: 1.0.27
4
4
  Summary: Python for CPM
5
5
  Author-email: Gonzalo Atienza Rela <gonatienza@gmail.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes