Skip to content

Commit

Permalink
add more logs in order to try to figure out what is broken
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jun 15, 2022
1 parent 29e370f commit 7a907a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void warnSystray()

int main(int argc, char **argv)
{
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --enable-logging --log-level=0");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --enable-logging --log-level=0 --v=1");
QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL, true);

#ifdef Q_OS_WIN
Expand Down
1 change: 1 addition & 0 deletions src/gui/wizard/webview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ WebViewPageUrlRequestInterceptor::WebViewPageUrlRequestInterceptor(QObject *pare
}

void WebViewPageUrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) {
qCInfo(lcWizardWebiew()) << info.requestMethod();
if (info.initiator().isEmpty()) {
info.setHttpHeader("OCS-APIREQUEST", "true");
qCDebug(lcWizardWebiew()) << info.requestMethod() << "add extra header" << "OCS-APIREQUEST";
Expand Down

0 comments on commit 7a907a8

Please sign in to comment.