ominfra 0.0.0.dev118__py3-none-any.whl → 0.0.0.dev119__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- ominfra/deploy/_executor.py +6 -2
- ominfra/deploy/poly/_main.py +6 -2
- ominfra/journald/fields.py +187 -0
- ominfra/journald/tailer.py +375 -312
- ominfra/pyremote/_runcommands.py +6 -2
- ominfra/scripts/journald2aws.py +381 -314
- ominfra/scripts/supervisor.py +649 -425
- ominfra/supervisor/__main__.py +1 -1
- ominfra/supervisor/context.py +50 -25
- ominfra/supervisor/dispatchers.py +8 -9
- ominfra/supervisor/main.py +68 -0
- ominfra/supervisor/poller.py +1 -3
- ominfra/supervisor/process.py +2 -4
- ominfra/supervisor/supervisor.py +100 -141
- {ominfra-0.0.0.dev118.dist-info → ominfra-0.0.0.dev119.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev118.dist-info → ominfra-0.0.0.dev119.dist-info}/RECORD +20 -18
- {ominfra-0.0.0.dev118.dist-info → ominfra-0.0.0.dev119.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev118.dist-info → ominfra-0.0.0.dev119.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev118.dist-info → ominfra-0.0.0.dev119.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev118.dist-info → ominfra-0.0.0.dev119.dist-info}/top_level.txt +0 -0
ominfra/pyremote/_runcommands.py
CHANGED
@@ -437,7 +437,7 @@ class StandardLogFormatter(logging.Formatter):
|
|
437
437
|
if datefmt:
|
438
438
|
return ct.strftime(datefmt) # noqa
|
439
439
|
else:
|
440
|
-
t = ct.strftime(
|
440
|
+
t = ct.strftime('%Y-%m-%d %H:%M:%S')
|
441
441
|
return '%s.%03d' % (t, record.msecs)
|
442
442
|
|
443
443
|
|
@@ -574,6 +574,7 @@ def configure_standard_logging(
|
|
574
574
|
json: bool = False,
|
575
575
|
target: ta.Optional[logging.Logger] = None,
|
576
576
|
force: bool = False,
|
577
|
+
handler_factory: ta.Optional[ta.Callable[[], logging.Handler]] = None,
|
577
578
|
) -> ta.Optional[StandardLogHandler]:
|
578
579
|
with _locking_logging_module_lock():
|
579
580
|
if target is None:
|
@@ -587,7 +588,10 @@ def configure_standard_logging(
|
|
587
588
|
|
588
589
|
#
|
589
590
|
|
590
|
-
|
591
|
+
if handler_factory is not None:
|
592
|
+
handler = handler_factory()
|
593
|
+
else:
|
594
|
+
handler = logging.StreamHandler()
|
591
595
|
|
592
596
|
#
|
593
597
|
|