1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Improve logging.

Move command begin to C except when it must be called after another command in Perl (e.g. expire after backup). Command begin logs correctly for complex data types like hash and list. Specify which commands will log to file immediately and set the default log level for log messages that are common to all commands. File logging is initiated from C.
This commit is contained in:
David Steele
2018-03-12 10:55:58 -04:00
parent 94494a632f
commit 03f1082e86
34 changed files with 729 additions and 209 deletions

View File

@ -15,7 +15,7 @@ testRun()
cfgInit();
cfgCommandSet(cfgCmdArchivePush);
TEST_RESULT_INT(exitSafe(NULL), 0, "exit with no error")
TEST_RESULT_INT(exitSafe(false), 0, "exit with no error")
testLogResult("P00 INFO: archive-push command end: completed successfully");
// -------------------------------------------------------------------------------------------------------------------------