Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
dm-ansible: Make sure stdout is outputted (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzaku authored and amyangfei committed Jul 22, 2019
1 parent 1eecb0d commit 4a7b841
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dm/dm-ansible/roles/dm-master/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
dm_master_log_level: "info"
dm_master_log_dir: "{{ deploy_dir }}/log"
dm_master_log_file: "dm-master.log"
dm_master_stdout_log_file: "dm-master-stdout.log"
dm_master_stderr_log_file: "dm-master-stderr.log"
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ exec bin/dm-master \
--master-addr=":{{ dm_master_port }}" \
-L="{{ dm_master_log_level }}" \
--config="conf/dm-master.toml" \
--log-file="{{ dm_master_log_dir }}/{{ dm_master_log_file }}" 2>> "{{ dm_master_log_dir }}/{{ dm_master_stderr_log_file }}"
--log-file="{{ dm_master_log_dir }}/{{ dm_master_log_file }}" >> "{{ dm_master_log_dir }}/{{ dm_master_stdout_log_file }}" 2>> "{{ dm_master_log_dir }}/{{ dm_master_stderr_log_file }}"
1 change: 1 addition & 0 deletions dm/dm-ansible/roles/dm-worker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
dm_worker_log_level: "info"
dm_worker_log_dir: "{{ deploy_dir }}/log"
dm_worker_log_file: "dm-worker.log"
dm_worker_stdout_log_file: "dm-worker-stdout.log"
dm_worker_stderr_log_file: "dm-worker-stderr.log"
dm_worker_relay_dir: "{{ deploy_dir }}/relay_log"
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ exec bin/dm-worker \
-L="{{ dm_worker_log_level }}" \
--relay-dir="{{ dm_worker_relay_dir }}" \
--config="conf/dm-worker.toml" \
--log-file="{{ dm_worker_log_dir }}/{{ dm_worker_log_file }}" 2>> "{{ dm_worker_log_dir }}/{{ dm_worker_stderr_log_file }}"
--log-file="{{ dm_worker_log_dir }}/{{ dm_worker_log_file }}" >> "{{ dm_worker_log_dir }}/{{ dm_worker_stdout_log_file }}" 2>> "{{ dm_worker_log_dir }}/{{ dm_worker_stderr_log_file }}"

0 comments on commit 4a7b841

Please sign in to comment.