Skip to content

Commit

Permalink
Fix leofs/issues/99
Browse files Browse the repository at this point in the history
  • Loading branch information
yosukehara committed Nov 8, 2013
1 parent 5e0cb7a commit bad3973
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 18 deletions.
6 changes: 4 additions & 2 deletions rel/leo_gateway/files/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

%% Log appender - [file]
{log_appender, [
{file, [{path, "{{platform_log_dir}}/app"}]}
{file, [{path, "{{app_log_dir}}" }
]},

%% Directory of log output
Expand All @@ -147,7 +147,9 @@
]},
{leo_redundant_manager, [{profile, false},
{notify_mf, [leo_manager_api, notify]},
{sync_mf, [leo_manager_api, synchronize]}
{sync_mf, [leo_manager_api, synchronize]},
{log_dir_member, "{{ring_log_dir}}" },
{log_dir_ring, "{{ring_log_dir}}" }
]},
{leo_statistics, [{profile, false}]}
].
19 changes: 13 additions & 6 deletions rel/leo_gateway/vars.config
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,24 @@

%% == Directories ==
%%
{snmp_conf_dir, "snmpa_gateway_0"}.
{snmp_agent_dir, "{{platform_snmp_dir}}/{{snmp_conf_dir}}/LEO-GATEWAY"}.
{snmp_conf_dir, "snmpa_gateway_0"}.
{snmp_agent_dir, "{{platform_snmp_dir}}/{{snmp_conf_dir}}/LEO-GATEWAY"}.

%% Directory of Mmneisa
{mnesia_dir, "{{platform_work_dir}}/mnesia"}.
{mnesia_dir, "{{platform_work_dir}}/mnesia"}.
%% Directory of mq's db-file
{queue_dir, "{{platform_work_dir}}/queue"}.
{queue_dir, "{{platform_work_dir}}/queue"}.
%% Directory of log output
{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
%% Directory of sasl-log output
{sasl_error_log, "{{platform_log_dir}}/sasl/sasl-error.log"}.
{sasl_error_log, "{{platform_log_dir}}/sasl/sasl-error.log"}.

%% Application log directory
{app_log_dir, "{{platform_log_dir}}/app"}.
%% Directory of ring and cluster-members log directory
{ring_log_dir, "{{platform_log_dir}}/ring"}.
{members_log_dir, "{{platform_log_dir}}/ring"}.


%% Log output level
%% 0: debug
Expand Down
6 changes: 4 additions & 2 deletions rel/leo_manager/files/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{log_level, {{log_level}} },
%% Log appender - [file]
{log_appender, [
{file, [{path, "{{platform_log_dir}}/app"}]}
{file, [{path, "{{app_log_dir}}" }
]},

%% == Directories ==
Expand All @@ -104,7 +104,9 @@
{leo_object_storage, [{profile, false}]},
{leo_redundant_manager, [{profile, false},
{notify_mf, [leo_manager_api, notify]},
{sync_mf, [leo_manager_api, synchronize]}
{sync_mf, [leo_manager_api, synchronize]},
{log_dir_member, "{{ring_log_dir}}" },
{log_dir_ring, "{{ring_log_dir}}" }
]},
{leo_statistics, [{profile, false}]}
].
8 changes: 6 additions & 2 deletions rel/leo_manager/vars.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,18 @@

%% Directory of Mnesia
{mnesia_dir, "{{platform_work_dir}}/mnesia"}.

%% Directory of mq's db-file
{queue_dir, "{{platform_work_dir}}/queue"}.

%% SASL log related
{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
{sasl_error_log, "{{platform_log_dir}}/sasl/sasl-error.log"}.

%% Application log directory
{app_log_dir, "{{platform_log_dir}}/app"}.
%% Directory of ring and cluster-members log directory
{ring_log_dir, "{{platform_log_dir}}/ring"}.
{members_log_dir, "{{platform_log_dir}}/ring"}.

%% Log output level
%% 0: debug
%% 1: info
Expand Down
9 changes: 7 additions & 2 deletions rel/leo_manager/vars/manager_master_vars.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,19 @@

%% Directory of Mnesia
{mnesia_dir, "{{platform_work_dir}}/mnesia"}.

%% Directory of mq's db-file
{queue_dir, "{{platform_work_dir}}/queue"}.

%% SASL log related
{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
{sasl_error_log, "{{platform_log_dir}}/sasl/sasl-error.log"}.

%% Application log directory
{app_log_dir, "{{platform_log_dir}}/app"}.
%% Directory of ring and cluster-members log directory
{ring_log_dir, "{{platform_log_dir}}/ring"}.
{members_log_dir, "{{platform_log_dir}}/ring"}.


%% Log output level
%% 0: debug
%% 1: info
Expand Down
8 changes: 6 additions & 2 deletions rel/leo_manager/vars/manager_slave_vars.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,18 @@

%% Directory of Mnesia
{mnesia_dir, "{{platform_work_dir}}/mnesia"}.

%% Directory of mq's db-file
{queue_dir, "{{platform_work_dir}}/queue"}.

%% SASL log related
{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
{sasl_error_log, "{{platform_log_dir}}/sasl/sasl-error.log"}.

%% Application log directory
{app_log_dir, "{{platform_log_dir}}/app"}.
%% Directory of ring and cluster-members log directory
{ring_log_dir, "{{platform_log_dir}}/ring"}.
{members_log_dir, "{{platform_log_dir}}/ring"}.

%% Log output level
%% 0: debug
%% 1: info
Expand Down
6 changes: 4 additions & 2 deletions rel/leo_storage/files/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
%%
{log_level, {{log_level}} },
{log_appender, [
{file, [{path, "{{platform_log_dir}}/app"}]}
{file, [{path, "{{app_log_dir}}" }
]},

%% == Directories ==
Expand Down Expand Up @@ -120,7 +120,9 @@
]},
{leo_redundant_manager, [{profile, false},
{notify_mf, [leo_manager_api, notify]},
{sync_mf, [leo_manager_api, synchronize]}
{sync_mf, [leo_manager_api, synchronize]},
{log_dir_member, "{{ring_log_dir}}" },
{log_dir_ring, "{{ring_log_dir}}" }
]},
{leo_statistics, [{profile, false}]}
].
6 changes: 6 additions & 0 deletions rel/leo_storage/vars.config
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
{sasl_error_log, "{{platform_log_dir}}/sasl/sasl-error.log"}.

%% Application log directory
{app_log_dir, "{{platform_log_dir}}/app"}.
%% Directory of ring and cluster-members log directory
{ring_log_dir, "{{platform_log_dir}}/ring"}.
{members_log_dir, "{{platform_log_dir}}/ring"}.

%% Log output level
%% 0: debug
%% 1: info
Expand Down

0 comments on commit bad3973

Please sign in to comment.