Skip to content

Commit

Permalink
reduce wait exit log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed May 12, 2024
1 parent 85e7b84 commit f73399e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion cslol-tools/lib/lol/patcher/patcher_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ auto patcher::run(std::function<void(Message, char const*)> update,
// post log message
update(M_WAIT_EXIT, msg);
}
if (!msg) update(M_WAIT_EXIT, "");
return tid != cslol_find();
},
[]() -> bool { throw PatcherTimeout(std::string("Timed out exit")); });
Expand Down
3 changes: 1 addition & 2 deletions cslol-tools/src/main_mod_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,8 @@ static auto mod_runoverlay(fs::path overlay, fs::path config_file, fs::path game
}
if (msg == patcher::M_WAIT_EXIT) {
if (arg && *arg) {
fprintf(stdout, "patcher: %s\n", arg);
fprintf(stdout, "[DLL] %s\n", arg);
fflush(stdout);
old_msg = patcher::M_COUNT_OF;
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/CSLOLToolsImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void CSLOLToolsImpl::setState(CSLOLState value) {
void CSLOLToolsImpl::setStatus(QString status) {
if (status_ != status) {
logFile_->write((status.toUtf8() + "\n"));
if (!status.startsWith("[WRN] ")) {
if (!status.startsWith("[WRN] ") && !status.startsWith("[DLL] ")) {
status_ = status;
emit statusChanged(status);
}
Expand Down
6 changes: 5 additions & 1 deletion src/qml/CSLOLDialogSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,13 @@ Dialog {
}
Switch {
id: debugPatcherCheck
text: qsTr("Debug patcher")
text: qsTr("Verbose logging")
checked: false
Layout.fillWidth: true
CSLOLToolTip {
text: qsTr("Helps diagnose issues comming from patcher.")
visible: parent.hovered
}
}
}
ColumnLayout {
Expand Down
4 changes: 2 additions & 2 deletions src/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ApplicationWindow {
property alias themeDarkMode: cslolDialogSettings.themeDarkMode
property alias themePrimaryColor: cslolDialogSettings.themePrimaryColor
property alias themeAccentColor: cslolDialogSettings.themeAccentColor
property alias debugPatcher: cslolDialogSettings.debugPatcher
property alias verbosePatcher: cslolDialogSettings.debugPatcher

property alias removeUnknownNames: cslolDialogEditMod.removeUnknownNames
property alias lastZipDirectory: cslolDialogOpenZipFantome.folder
Expand Down Expand Up @@ -98,7 +98,7 @@ ApplicationWindow {
let name = cslolToolBar.profilesCurrentName
let mods = cslolModsView.saveProfile()
if (checkGamePath()) {
cslolTools.saveProfile(name, mods, run, settings.suppressInstallConflicts, settings.debugPatcher)
cslolTools.saveProfile(name, mods, run, settings.suppressInstallConflicts, settings.verbosePatcher)
}
}

Expand Down

0 comments on commit f73399e

Please sign in to comment.