Skip to content

Conversation

geekgogie
Copy link

Caused by an error as an example:
vagrant@node_manager:~$ /usr/local/bin/masterha_check_repl --conf=/etc/app1.cnf
Fri May 3 00:59:43 2019 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Fri May 3 00:59:43 2019 - [info] Reading application default configuration from /etc/app1.cnf..
Fri May 3 00:59:43 2019 - [info] Reading server configuration from /etc/app1.cnf..
Fri May 3 00:59:43 2019 - [info] MHA::MasterMonitor version 0.58.
Fri May 3 00:59:44 2019 - [error][/usr/local/share/perl/5.26.1/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. Redundant argument in sprintf at /usr/local/share/perl/5.26.1/MHA/NodeUtil.pm line 195.
Fri May 3 00:59:44 2019 - [error][/usr/local/share/perl/5.26.1/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Fri May 3 00:59:44 2019 - [info] Got exit code 1 (Not master dead).

It would be more readable and easy to follow using array and then splice based only on the indexes needed to be parsed in Major and Minor version

Caused by an error as an example:
vagrant@node_manager:~$ /usr/local/bin/masterha_check_repl --conf=/etc/app1.cnf
Fri May  3 00:59:43 2019 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Fri May  3 00:59:43 2019 - [info] Reading application default configuration from /etc/app1.cnf..
Fri May  3 00:59:43 2019 - [info] Reading server configuration from /etc/app1.cnf..
Fri May  3 00:59:43 2019 - [info] MHA::MasterMonitor version 0.58.
Fri May  3 00:59:44 2019 - [error][/usr/local/share/perl/5.26.1/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. Redundant argument in sprintf at /usr/local/share/perl/5.26.1/MHA/NodeUtil.pm line 195.
Fri May  3 00:59:44 2019 - [error][/usr/local/share/perl/5.26.1/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Fri May  3 00:59:44 2019 - [info] Got exit code 1 (Not master dead).

It would be more readable and easy to follow using array and then splice based only on the indexes needed to be parsed in Major and Minor version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant