mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Use stdout to print information about signing
Previously, the default output from the libdns library went to stderr by default. This was inconsistent with the rest of the output. This commit changes the default logging to go to stdout, with notable exception - when the output of the signing process goes to stdout, the messages are printed to the stderr. This is consistent with other functions that output information about the signing process - e.g. print_stats().
This commit is contained in:
parent
36ee99c5ee
commit
90f4c1c5a2
1 changed files with 3 additions and 2 deletions
|
|
@ -2645,11 +2645,12 @@ loadexplicitkeys(char *keyfiles[], int n, bool setksk) {
|
|||
|
||||
static void
|
||||
report(const char *format, ...) {
|
||||
FILE *out = output_stdout ? stderr : stdout;
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
vfprintf(stderr, format, args);
|
||||
vfprintf(out, format, args);
|
||||
va_end(args);
|
||||
putc('\n', stderr);
|
||||
putc('\n', out);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue