1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Show exact log level required for stack trace param output instead of just "debug".

This commit is contained in:
David Steele
2018-07-20 07:15:28 -04:00
parent 0ac176b722
commit fa53e2eddb
3 changed files with 10 additions and 3 deletions

View File

@ -177,7 +177,9 @@ stackTraceParamIdx(int stackIdx)
return data->param;
}
return "debug log level required for parameters";
// If no parameters return the log level required to get them
#define LOG_LEVEL_REQUIRED " log level required for parameters"
return data->functionLogLevel == logLevelTrace ? "trace" LOG_LEVEL_REQUIRED : "debug" LOG_LEVEL_REQUIRED;
}
const char *