Skip to content

Problem: nutscan_init() called before debug is enabled#502

Merged
clepple merged 1 commit intonetworkupstools:masterfrom
jimklimov:nut_init
Nov 29, 2017
Merged

Problem: nutscan_init() called before debug is enabled#502
clepple merged 1 commit intonetworkupstools:masterfrom
jimklimov:nut_init

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Solution: Move the call to this stateless function to the point after we parse arguments and just before we'd start the actual scans. Later this can be extended to also consider which scans were requested and so which libs to load.

Thanks to @clepple for research in #500

Signed-off-by: Jim Klimov EvgenyKlimov@eaton.com

Solution: Move the call to this stateless function to the point after we parse arguments and just before we'd start the actual scans. Later this can be extended to also consider which scans were requested and so which libs to load.

Thanks to @clepple for research in networkupstools#500

Signed-off-by: Jim Klimov <EvgenyKlimov@eaton.com>
@jimklimov jimklimov requested review from aquette and clepple November 27, 2017 08:29
Copy link
Copy Markdown
Member

@clepple clepple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, but I don't have a good setup to test this fix.

@clepple clepple merged commit f613d45 into networkupstools:master Nov 29, 2017
clepple added a commit that referenced this pull request Dec 3, 2017
Closes: #300

Notable commits from master:

 * Documentation
 * statepath environment variables (#473 / #507)
 * nut-scanner (issue #500 / pull #502)
 * Fix one parallel build problem (#418)
 * Compute output load if not provided (#484)
@zykh
Copy link
Copy Markdown
Contributor

zykh commented Mar 15, 2018

ahem... @jimklimov, what about the various places (when parsing opts or displaying help) that rely on a nutscan_avail_* var already initialized by nutscan_init()?

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.

3 participants