Skip to content

Commit

Permalink
Ignore --debug if a log level is given
Browse files Browse the repository at this point in the history
  • Loading branch information
Forest committed Aug 25, 2022
1 parent b13b997 commit f711fe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ main(int argc, char *argv[])
#endif

try {
std::string level =
(parser.isSet(debugOption) ? "trace," : "") + parser.value(logLevel).toStdString();
std::string level = parser.isSet(logLevel)
? parser.value(logLevel).toStdString()
: (parser.isSet(debugOption) ? "trace" : "");
std::string path = QDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation))
.filePath("nheko.log")
.toStdString();
Expand Down

0 comments on commit f711fe5

Please sign in to comment.