orionis 0.452.0__py3-none-any.whl → 0.453.0__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.
- orionis/console/core/reactor.py +11 -0
- orionis/metadata/framework.py +1 -1
- {orionis-0.452.0.dist-info → orionis-0.453.0.dist-info}/METADATA +1 -1
- {orionis-0.452.0.dist-info → orionis-0.453.0.dist-info}/RECORD +8 -8
- {orionis-0.452.0.dist-info → orionis-0.453.0.dist-info}/WHEEL +0 -0
- {orionis-0.452.0.dist-info → orionis-0.453.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.452.0.dist-info → orionis-0.453.0.dist-info}/top_level.txt +0 -0
- {orionis-0.452.0.dist-info → orionis-0.453.0.dist-info}/zip-safe +0 -0
orionis/console/core/reactor.py
CHANGED
|
@@ -13,6 +13,8 @@ from orionis.foundation.contracts.application import IApplication
|
|
|
13
13
|
from orionis.services.introspection.modules.reflection import ReflectionModule
|
|
14
14
|
import re
|
|
15
15
|
|
|
16
|
+
from orionis.services.log.contracts.log_service import ILoggerService
|
|
17
|
+
|
|
16
18
|
class Reactor:
|
|
17
19
|
|
|
18
20
|
def __init__(
|
|
@@ -69,6 +71,9 @@ class Reactor:
|
|
|
69
71
|
# Initialize the console for command output
|
|
70
72
|
self.__console: IConsole = self.__app.make('x-orionis.console.output.console')
|
|
71
73
|
|
|
74
|
+
# Initialize the logger service for logging command execution details
|
|
75
|
+
self.__logger: ILoggerService = self.__app.make('x-orionis.services.log.log_service')
|
|
76
|
+
|
|
72
77
|
def __loadCommands(self, commands_path: str, root_path: str) -> None:
|
|
73
78
|
"""
|
|
74
79
|
Loads command classes from Python files in the specified commands directory.
|
|
@@ -422,6 +427,9 @@ class Reactor:
|
|
|
422
427
|
elapsed_time = round(time.perf_counter() - start_time, 2)
|
|
423
428
|
self.__executer.done(program=signature, time=f"{elapsed_time}s")
|
|
424
429
|
|
|
430
|
+
# Log the command execution success
|
|
431
|
+
self.__logger.info(f"Command '{signature}' executed successfully in ({elapsed_time}) seconds.")
|
|
432
|
+
|
|
425
433
|
# If the command has a return value or output, return it
|
|
426
434
|
if output is not None:
|
|
427
435
|
return output
|
|
@@ -431,6 +439,9 @@ class Reactor:
|
|
|
431
439
|
# Display the error message in the console
|
|
432
440
|
self.__console.error(f"An error occurred while executing command '{signature}': {e}", timestamp=False)
|
|
433
441
|
|
|
442
|
+
# Log the error in the logger service
|
|
443
|
+
self.__logger.error(f"Command '{signature}' execution failed: {e}")
|
|
444
|
+
|
|
434
445
|
# Log the command execution failure with ERROR state
|
|
435
446
|
if timestamps:
|
|
436
447
|
elapsed_time = round(time.perf_counter() - start_time, 2)
|
orionis/metadata/framework.py
CHANGED
|
@@ -15,7 +15,7 @@ orionis/console/commands/version.py,sha256=kR8xzyc-Wisk7AXqg3Do7M9xTg_CxJgAtESPG
|
|
|
15
15
|
orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
orionis/console/contracts/kernel.py,sha256=mh4LlhEYHh3FuGZZQ0GBhD6ZLa5YQvaNj2r01IIHI5Y,826
|
|
17
17
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
orionis/console/core/reactor.py,sha256=
|
|
18
|
+
orionis/console/core/reactor.py,sha256=nfts3Tuvz5GHhavN3AmFjSM2uxJDV8yh_xQP1JMgd9A,19265
|
|
19
19
|
orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
|
|
21
21
|
orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -180,7 +180,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=X4Ke7mPr0MgVp6WDNaQ
|
|
|
180
180
|
orionis/foundation/providers/testing_provider.py,sha256=YTubcNnWrG3SPx5NM5HgYefvUYoXdlzXcjljnjavUwM,6462
|
|
181
181
|
orionis/foundation/providers/workers_provider.py,sha256=5CvlUETdIblh7Wx8pT0MswTeTCGhYah-EvFqOrLu8Mo,4113
|
|
182
182
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
183
|
-
orionis/metadata/framework.py,sha256=
|
|
183
|
+
orionis/metadata/framework.py,sha256=Yydz9pUk2t1eQMGQc4uRQ9sN3Yuqg26Q4mjWpxGSktM,4088
|
|
184
184
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
185
185
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
186
186
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -345,7 +345,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
345
345
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
346
346
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
347
347
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
348
|
-
orionis-0.
|
|
348
|
+
orionis-0.453.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
349
349
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
350
350
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
351
351
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -488,8 +488,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
488
488
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
489
489
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
490
490
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
491
|
-
orionis-0.
|
|
492
|
-
orionis-0.
|
|
493
|
-
orionis-0.
|
|
494
|
-
orionis-0.
|
|
495
|
-
orionis-0.
|
|
491
|
+
orionis-0.453.0.dist-info/METADATA,sha256=2l6AHDIa0Uv_iDNRBUqX-k7yrNBwlTyuSR3Z8zUp4Mc,4772
|
|
492
|
+
orionis-0.453.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
493
|
+
orionis-0.453.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
494
|
+
orionis-0.453.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
495
|
+
orionis-0.453.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|