From 89e6a100626355eabaae35f25b93a8536868a364 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 26 Jun 2019 01:04:49 +0800 Subject: [PATCH] feat(log): Logging provides the logging configuration. --- templates/drone-agent.env.j2 | 14 ++++++++++++++ templates/drone-server.env.j2 | 20 ++++++++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/templates/drone-agent.env.j2 b/templates/drone-agent.env.j2 index d310702..93e823a 100644 --- a/templates/drone-agent.env.j2 +++ b/templates/drone-agent.env.j2 @@ -7,7 +7,21 @@ DRONE_RPC_SECRET={{ drone_rpc_secret }} {% if drone_runner_capacity is defined %} DRONE_RUNNER_CAPACITY={{ drone_runner_capacity }} {% endif %} +{% if drone_logs_debug is defined %} DRONE_LOGS_DEBUG=true +{% endif %} +{% if drone_logs_trace is defined %} +DRONE_LOGS_TRACE=true +{% endif %} +{% if drone_logs_nocolor is defined %} +DRONE_LOGS_NOCOLOR=true +{% endif %} +{% if drone_logs_pretty is defined %} +DRONE_LOGS_PRETTY=true +{% endif %} +{% if drone_logs_text is defined %} +DRONE_LOGS_TEXT=true +{% endif %} {% if drone_runner_name is defined %} DRONE_RUNNER_NAME={{ drone_runner_name }} {% endif %} diff --git a/templates/drone-server.env.j2 b/templates/drone-server.env.j2 index 2b9094d..a33963c 100644 --- a/templates/drone-server.env.j2 +++ b/templates/drone-server.env.j2 @@ -16,13 +16,21 @@ DRONE_DATABASE_SECRET={{ drone_database_secret }} {% if drone_agents_enabled is defined %} DRONE_AGENTS_ENABLED=true {% endif %} -{% if drone_logs_pretty is defined %} -DRONE_LOGS_PRETTY={{ drone_logs_pretty }} -{% endif %} -{% if drone_logs_color is defined %} -DRONE_LOGS_COLOR={{ drone_logs_color }} -{% endif %} +{% if drone_logs_debug is defined %} DRONE_LOGS_DEBUG=true +{% endif %} +{% if drone_logs_trace is defined %} +DRONE_LOGS_TRACE=true +{% endif %} +{% if drone_logs_nocolor is defined %} +DRONE_LOGS_NOCOLOR=true +{% endif %} +{% if drone_logs_pretty is defined %} +DRONE_LOGS_PRETTY=true +{% endif %} +{% if drone_logs_text is defined %} +DRONE_LOGS_TEXT=true +{% endif %} {% if drone_user_create is defined %} DRONE_USER_CREATE={{ drone_user_create }} {% endif %}