forked from quickshell/quickshell
core/log: add fancy logger
This commit is contained in:
parent
533b389742
commit
46f48f2f87
4 changed files with 85 additions and 4 deletions
|
@ -22,10 +22,12 @@
|
|||
#include <qtextstream.h>
|
||||
#include <qtpreprocessorsupport.h>
|
||||
|
||||
#include "logging.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "rootwrapper.hpp"
|
||||
|
||||
int qs_main(int argc, char** argv) {
|
||||
LogManager::setup();
|
||||
QString configFilePath;
|
||||
QString workingDirectory;
|
||||
|
||||
|
@ -330,11 +332,9 @@ int qs_main(int argc, char** argv) {
|
|||
file.close();
|
||||
}
|
||||
|
||||
qInfo() << "shell id:" << shellId;
|
||||
|
||||
if (printCurrent) {
|
||||
qInfo() << "shell id:" << shellId;
|
||||
return 0;
|
||||
}
|
||||
if (printCurrent) return 0;
|
||||
|
||||
for (auto [var, val]: envOverrides.asKeyValueRange()) {
|
||||
qputenv(var.toUtf8(), val.toUtf8());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue