Skip to content

Commit 883547f

Browse files
committed
Clean-up logging options
1 parent 77305c3 commit 883547f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/hyperiond/main.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ int main(int argc, char** argv)
156156
BooleanOption& deleteDB = parser.add<BooleanOption>(0x0, "deleteDatabase", "Start all over? This Option will delete the database");
157157
Option& importConfig = parser.add<Option>(0x0, "importConfig", "Replace the current configuration database by a new configuration");
158158
Option& exportConfigPath = parser.add<Option>(0x0, "exportConfig", "Export the current configuration database, defaults to home directory of current user (%1)", QDir::homePath() + "/.hyperion//archive");
159-
BooleanOption& silentOption = parser.add<BooleanOption>('s', "silent", "Do not print any outputs");
160-
BooleanOption& infoMsgOption = parser.add<BooleanOption>('i', "info", "Show Info messages");
161-
BooleanOption& debugMsgOption = parser.add<BooleanOption>('d', "debug", "Show Debug messages");
159+
BooleanOption& silentLogOption = parser.add<BooleanOption>('s', "silent", "Do not print any log outputs");
160+
BooleanOption& infoLogOption = parser.add<BooleanOption>('i', "info", "Show Info log messages");
161+
BooleanOption& debugLogOption = parser.add<BooleanOption>('d', "debug", "Show Debug log messages");
162162

163163
parser.add<BooleanOption>(0x0, "desktop", "Show systray on desktop");
164164
parser.add<BooleanOption>(0x0, "service", "Force hyperion to start as console service");
@@ -214,19 +214,19 @@ int main(int argc, char** argv)
214214
}
215215

216216
int logLevelCheck = 0;
217-
if (parser.isSet(silentOption))
217+
if (parser.isSet(silentLogOption))
218218
{
219219
Logger::setLogLevel(Logger::OFF);
220220
logLevelCheck++;
221221
}
222222

223-
if (parser.isSet(infoMsgOption))
223+
if (parser.isSet(infoLogOption))
224224
{
225225
Logger::setLogLevel(Logger::INFO);
226226
logLevelCheck++;
227227
}
228228

229-
if (parser.isSet(debugMsgOption))
229+
if (parser.isSet(debugLogOption))
230230
{
231231
Logger::setLogLevel(Logger::DEBUG);
232232
logLevelCheck++;
@@ -237,7 +237,7 @@ int main(int argc, char** argv)
237237

238238
if (logLevelCheck > 1)
239239
{
240-
emit errorManager.errorOccurred("Options --silent --verbose --debug cannot be used all together.");
240+
emit errorManager.errorOccurred("Options --silent --info --debug cannot be used all together.");
241241
return EXIT_FAILURE;
242242
}
243243

0 commit comments

Comments
 (0)