iatoolkit 0.16.5__py3-none-any.whl → 0.16.6__py3-none-any.whl

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.

Potentially problematic release.


This version of iatoolkit might be problematic. Click here for more details.

iatoolkit/common/auth.py CHANGED
@@ -55,7 +55,7 @@ class IAuthentication:
55
55
  elif api_key_error_info is not None:
56
56
  # explicit error in API Key (inválida, incorrecta, error interno)
57
57
  logging.warning(f"Fallo de autenticación API Key: {api_key_error_info}")
58
- return {"error_message": "Fallo de autenticación API Key"}
58
+ return {"error_message": api_key_error_info}
59
59
  else:
60
60
  # 3. no JWT and API Key auth, try by Session
61
61
  self.check_if_user_is_logged_in(company_short_name) # raise exception or redirect if not logged in
iatoolkit/iatoolkit.py CHANGED
@@ -113,8 +113,9 @@ class IAToolkit:
113
113
  return self.config.get(key, os.getenv(key, default))
114
114
 
115
115
  def _setup_logging(self):
116
- log_level_str = self._get_config_value('FLASK_ENV', 'production')
117
- log_level = logging.INFO if log_level_str in ('dev', 'development') else logging.WARNING
116
+ # Lee el nivel de log desde una variable de entorno, con 'INFO' como valor por defecto.
117
+ log_level_name = os.getenv('LOG_LEVEL', 'INFO').upper()
118
+ log_level = getattr(logging, log_level_name, logging.INFO)
118
119
 
119
120
  logging.basicConfig(
120
121
  level=log_level,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iatoolkit
3
- Version: 0.16.5
3
+ Version: 0.16.6
4
4
  Summary: IAToolkit
5
5
  Author: Fernando Libedinsky
6
6
  License-Expression: MIT
@@ -2,9 +2,9 @@ iatoolkit/__init__.py,sha256=4PWjMJjktixtrxF6BY405qyA50Sv967kEP2x-oil6qk,1120
2
2
  iatoolkit/base_company.py,sha256=GacYVVujoxAwUhofRn5eZcR-s1bHtSQXLD-0SRnWSC0,4595
3
3
  iatoolkit/cli_commands.py,sha256=G5L9xQXZ0lVFXQWBaE_KEZHyfuiT6PL1nTQRoSdnBzc,2302
4
4
  iatoolkit/company_registry.py,sha256=tduqt3oV8iDX_IB1eA7KIgvIxE4edTcy-3qZIXh3Lzw,2549
5
- iatoolkit/iatoolkit.py,sha256=OXhzOiJwfGi0ozi5V2ckPEagcTyb4Cz08QxLtE0_67E,17118
5
+ iatoolkit/iatoolkit.py,sha256=AfuumoVKH2wk8Kg2w-m0iPOgKK5ZxePn_xZJ0a5rcrg,17174
6
6
  iatoolkit/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- iatoolkit/common/auth.py,sha256=8NH6MQXfddLQd1GxrO2op3IYrrP4SMQKoKzj1o1jZmc,8486
7
+ iatoolkit/common/auth.py,sha256=83WsyHF7TdjPYfAA-da-waizlWLIqSTx-2z4pI4LAnw,8471
8
8
  iatoolkit/common/exceptions.py,sha256=EXx40n5htp7UiOM6P1xfJ9U6NMcADqm62dlFaKz7ICU,1154
9
9
  iatoolkit/common/routes.py,sha256=ZCJyeVaGsCPaEWEgj2ZKh3RzuFcyEx_dnrlKdAbcOao,4930
10
10
  iatoolkit/common/session_manager.py,sha256=7D_RuJs60w-1zDr3fOGEz9JW7IZlSXuUHgUT87CzaUo,472
@@ -104,7 +104,7 @@ iatoolkit/views/tasks_review_view.py,sha256=keLsLCyOTTlcoIapnB_lbuSvLwrPVZVpBiFC
104
104
  iatoolkit/views/tasks_view.py,sha256=a3anTXrJTTvbQuc6PSpOzidLKQFL4hWa7PI2Cppcz8w,4110
105
105
  iatoolkit/views/user_feedback_view.py,sha256=G37zmP8P4LvZrSymNJ5iFXhLZg1A3BEwRfTpH1Iam5w,2652
106
106
  iatoolkit/views/verify_user_view.py,sha256=a3q4wHJ8mKAEmgbNTOcnX4rMikROjOR3mHvCr30qGGA,2351
107
- iatoolkit-0.16.5.dist-info/METADATA,sha256=HS5FkIYcEDoagSSP7VtBA5nFXxcrRcHAmIYbvjHqdpc,9301
108
- iatoolkit-0.16.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
109
- iatoolkit-0.16.5.dist-info/top_level.txt,sha256=V_w4QvDx0b1RXiy8zTCrD1Bp7AZkFe3_O0-9fMiwogg,10
110
- iatoolkit-0.16.5.dist-info/RECORD,,
107
+ iatoolkit-0.16.6.dist-info/METADATA,sha256=d-2rq7Jd6WS88W4F9-H6j86c2rc_f0koyTrDGTNCGV0,9301
108
+ iatoolkit-0.16.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
109
+ iatoolkit-0.16.6.dist-info/top_level.txt,sha256=V_w4QvDx0b1RXiy8zTCrD1Bp7AZkFe3_O0-9fMiwogg,10
110
+ iatoolkit-0.16.6.dist-info/RECORD,,