accrete 0.0.114__py3-none-any.whl → 0.0.116__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.
- accrete/contrib/log/signals.py +13 -9
- {accrete-0.0.114.dist-info → accrete-0.0.116.dist-info}/METADATA +1 -1
- {accrete-0.0.114.dist-info → accrete-0.0.116.dist-info}/RECORD +5 -5
- {accrete-0.0.114.dist-info → accrete-0.0.116.dist-info}/WHEEL +0 -0
- {accrete-0.0.114.dist-info → accrete-0.0.116.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/log/signals.py
CHANGED
@@ -12,6 +12,11 @@ _logger = logging.getLogger(__name__)
|
|
12
12
|
|
13
13
|
@log_time
|
14
14
|
def create_log(sender, **kwargs):
|
15
|
+
if (
|
16
|
+
sender._meta.object_name == 'Migration'
|
17
|
+
and not config.ACCRETE_LOG_RUN_IN_MIGRATION
|
18
|
+
):
|
19
|
+
return
|
15
20
|
|
16
21
|
def _create_log():
|
17
22
|
member = get_member()
|
@@ -51,12 +56,11 @@ def create_log(sender, **kwargs):
|
|
51
56
|
log_config = LogConfig.objects.filter(model=model).first()
|
52
57
|
if not log_config:
|
53
58
|
return
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
raise e
|
59
|
+
try:
|
60
|
+
_create_log()
|
61
|
+
except Exception as e:
|
62
|
+
_logger.exception(e)
|
63
|
+
if log_config.ignore_errors:
|
64
|
+
pass
|
65
|
+
else:
|
66
|
+
raise e
|
@@ -19,7 +19,7 @@ accrete/contrib/log/config.py,sha256=vRzPVbiUfpo5NGtgiJv5mEKR_h3qsYI_brxjni6-Z-Y
|
|
19
19
|
accrete/contrib/log/helper.py,sha256=Zzmwxz7vP0jdW2LCw8gDpPNBkqlELaCydz-nxGh7F5Y,2493
|
20
20
|
accrete/contrib/log/models.py,sha256=PUGtm2mmZIhWf7Idpu9hZ-1mJtKU2p975e7eoCZ2cHE,6082
|
21
21
|
accrete/contrib/log/queries.py,sha256=JMI_q6dQ0JjyORtfRPOW92of45TFxqPiwIhHEEar34o,1126
|
22
|
-
accrete/contrib/log/signals.py,sha256=
|
22
|
+
accrete/contrib/log/signals.py,sha256=OTV4Ajd3oiICLPkLBjfGmeE_FNDsUmThbwQ-K6BH6_k,2174
|
23
23
|
accrete/contrib/log/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
24
24
|
accrete/contrib/log/views.py,sha256=xc1IQHrsij7j33TUbo-_oewy3vs03pw_etpBWaMYJl0,63
|
25
25
|
accrete/contrib/log/migrations/0001_initial.py,sha256=wkGMfaYc09dOuJXY0JengDBTkS98rMutUzmEAb6eK3E,2130
|
@@ -381,7 +381,7 @@ accrete/utils/forms.py,sha256=IvxbXNpSd4a-JBgsTJhs2GHe-DCRWX-xnVPRcoiCzbI,3104
|
|
381
381
|
accrete/utils/log.py,sha256=BH0MBDweAjx30wGBO4F3sFhbgkSoEs7T1lLLjlYZNnA,407
|
382
382
|
accrete/utils/models.py,sha256=2xTacvcpmDK_Bp4rAK7JdVLf8HU009LYNJ6eSpMgYZI,1014
|
383
383
|
accrete/utils/views.py,sha256=AutijWetWGgjdO1PNc4gxCblT-i1fAfldNDFRbO9Sac,5012
|
384
|
-
accrete-0.0.
|
385
|
-
accrete-0.0.
|
386
|
-
accrete-0.0.
|
387
|
-
accrete-0.0.
|
384
|
+
accrete-0.0.116.dist-info/METADATA,sha256=wf_quWOTkB_5CAzijvAu3g2-vPoUixUN2b8Ql76JUmc,4953
|
385
|
+
accrete-0.0.116.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
386
|
+
accrete-0.0.116.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
387
|
+
accrete-0.0.116.dist-info/RECORD,,
|
File without changes
|
File without changes
|