1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-20 23:59:28 +02:00

Fixed an issue where warnings were being emitted in place of lower priority log messages during backup from standby initialization.

This commit is contained in:
David Steele
2017-09-19 10:03:53 -04:00
parent d36c52271f
commit c857015a38
4 changed files with 15 additions and 4 deletions

View File

@ -34,6 +34,9 @@ sub run
$self->testResult(sub {&log(ERROR, "my test log", 27)}, "[object]", 'log error as warning',
{strLogExpect => "WARN: [027]: my test log"});
$self->testResult(sub {&log(INFO, "my test log")}, "my test log", 'log info as info',
{strLogLevel => INFO, strLogExpect => "INFO: my test log"});
logWarnOnErrorDisable();
$self->testResult(sub {&log(ERROR, "my test log", 27)}, "[object]", 'log error',
{strLogExpect => "ERROR: [027]: my test log"});