Skip to content

Conversation

@jimklimov
Copy link
Member

@jimklimov jimklimov commented Apr 20, 2023

Address a number of recent ideas and issues for driver reload and other activities.

  • Added instant commands and variable-setting "shared" by all drivers, covering config reload, killpower, and debug level changes;
  • Added protocol commands which allow a socket client to unsubscribe from broadcast messages (dstate::send_to_all() e.g. driver state quiet/updating in the main loop) and only see PtP replies to queries it posted (dstate::send_to_one());
  • Added support for NUT_DEBUG_LEVEL envvar in several daemons;
  • Updated docs on these and related subjects.

Touches on issues and proceeds from PRs including:

…oduce NUT_DEBUG_LEVEL envvar support (if no "-D" option(s) among CLI args) [networkupstools#1915]

Closes: networkupstools#1915
@jimklimov jimklimov added service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug NUT protocols labels Apr 20, 2023
@jimklimov jimklimov added this to the 2.8.1 milestone Apr 20, 2023
@AppVeyorBot

This comment was marked as resolved.

…of string: satisfy platforms where snprintf is a macro [networkupstools#1914]
…eparation of string: satisfy platforms where snprintf is a macro [networkupstools#1914]
…est(upslog_flags, UPSLOG_STDERR) at all, not just that the debug is enabled; also mark upslog_start when we first call the method, even if debu is not currently verbose (may change at run time) [networkupstools#1903]
@jimklimov
Copy link
Member Author

jimklimov commented Apr 21, 2023

Ran some basic experiments with WIN32, incorporated some lessons-learned into the PR. At least, pipedebug.c => sockdebug.exe builds work reasonably to interact with a dummy-ups driver directly to set the debug level on the fly (most other features added by this and a few other recent PRs, e.g. reload, were not implemented/ported yet).

@AppVeyorBot
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation enhancement NUT protocols service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug

Projects

None yet

2 participants