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

Remove unused parameter from cmdBegin().

This commit is contained in:
David Steele
2020-08-20 14:16:36 -04:00
parent fccca0d716
commit 859b8a50fd
5 changed files with 16 additions and 24 deletions

View File

@ -158,11 +158,9 @@ cmdOption(void)
/**********************************************************************************************************************************/
void
cmdBegin(bool logOption)
cmdBegin(void)
{
FUNCTION_LOG_BEGIN(logLevelTrace);
FUNCTION_LOG_PARAM(BOOL, logOption);
FUNCTION_LOG_END();
FUNCTION_LOG_VOID(logLevelTrace);
ASSERT(cfgCommand() != cfgCmdNone);
@ -174,15 +172,13 @@ cmdBegin(bool logOption)
// Basic info on command start
String *info = strNewFmt("%s command begin", strZ(cfgCommandRoleName()));
if (logOption)
{
// Free the old option string if it exists. This is needed when more than one command is run in a row so an option
// string gets created for the new command.
strFree(cmdOptionStr);
cmdOptionStr = NULL;
// Free the old option string if it exists. This is needed when more than one command is run in a row so an option
// string gets created for the new command.
strFree(cmdOptionStr);
cmdOptionStr = NULL;
strCatFmt(info, " %s:%s", PROJECT_VERSION, strZ(cmdOption()));
}
// Add version and options
strCatFmt(info, " %s:%s", PROJECT_VERSION, strZ(cmdOption()));
LOG(cfgLogLevelDefault(), 0, strZ(info));
}