Skip to content

#1681 Respect logfile option - #6379

Open
akleshchev wants to merge 2 commits into
developfrom
andreyk/viewer_1681
Open

akleshchev wants to merge 2 commits into
developfrom
andreyk/viewer_1681

Conversation

@akleshchev

@akleshchev akleshchev commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Reverts previous, incomplete and arguably wrong solution.
Applies UserLogFile once it is loaded.

This solution does not read UserLogFile as it isn't set yet and
this is not the place to parse os-specific command line.
This reverts commit 72f73ff.
@github-actions github-actions Bot added the c/cpp label Sep 26, 2026
@akleshchev akleshchev changed the title Respect logfile option #1681 Respect logfile option Sep 26, 2026
@akleshchev akleshchev linked an issue Sep 26, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Two moderate issues remain regarding per-instance log isolation and crash diagnostics.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates startup logging so the loaded UserLogFile setting is applied after configuration initialization.

Changes:

  • Adjusts logfile initialization and rotation.
  • Removes early platform-specific logfile parsing.
  • Applies the configured logfile after settings load.
File Summary
indra/​newview/​llappviewer.cpp Applies the configured logfile, but requires fixes for second-instance isolation and crash-log metadata.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


// Command line could have updated UserLogFile
std::string log_filename = gSavedSettings.getString("UserLogFile");
if (!log_filename.empty() && LLError::logFileName() != log_filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sort out / maybe fix viewer "logfile" option

3 participants