genvid.toolbox.ConsulTemplateExecutionFailed

class genvid.toolbox.ConsulTemplateExecutionFailed(exit_code: int, logs: typing.Iterable[str])

ベースクラス: genvid.toolbox.consul_template.ConsulTemplateError

consul-template を実行して 0 以外の終了コードが得られた場合に発生します。

バージョン 1.22.0 で追加.

log(logger)

ConsulTemplateError.log() のオーバーライド

このメソッドは、consul-template からキャプチャしたログも直接記録します。

パラメータ:logger – ログの書き込みに使用するロガー。