Skip to content

Add version info to debug output #216

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

AlexanderAmelkin
Copy link
Contributor

@AlexanderAmelkin AlexanderAmelkin commented Jul 17, 2020

  • Initialize the log at the start of ipmi_main() to allow for proper
    logging at the start;
  • Remove the unused log_level_get() function;
  • Update log_level_set() to take verbosity instead of log level
    (default verbosity is 0, which is LOG_NOTICE log level),
    use the function to update log level as -v is encountered
    in command line;
  • Move IANA PEN list debugging to verbosity 6. The list is too long
    to see it in each debug output of verbosity 5 that is used for
    debugging lan/lanplus packets;
  • For verbosity >= 2 (that is -vv) add the ipmitool version
    information at the start.

Signed-off-by: Alexander Amelkin alexander@amelkin.msk.ru

- Initialize the log at the start of ipmi_main() to allow for proper
  logging at the start;
- Remove the unused log_level_get() function;
- Update log_level_set() to take verbosity instead of log level
  (default verbosity is 0, which is LOG_NOTICE log level),
  use the function to update log level as `-v` is encountered
  in command line;
- Move IANA PEN list debugging to verbosity 6. The list is too long
  to see it in each debug output of verbosity 5 that is used for
  debugging lan/lanplus packets;
- For verbosity >= 2 (that is `-vv`) add the ipmitool version
  information at the start.

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
@AlexanderAmelkin AlexanderAmelkin merged commit 16f937a into master Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant