Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Black Dragon Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Logue
Black Dragon Viewer
Commits
8d4e6b6d
Commit
8d4e6b6d
authored
6 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
DRTVWR-447: Additional logging getting metadata for previous run
parent
787053ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llappviewer.cpp
+2
-5
2 additions, 5 deletions
indra/newview/llappviewer.cpp
indra/newview/llappviewermacosx.cpp
+25
-8
25 additions, 8 deletions
indra/newview/llappviewermacosx.cpp
with
27 additions
and
13 deletions
indra/newview/llappviewer.cpp
+
2
−
5
View file @
8d4e6b6d
...
@@ -3051,14 +3051,11 @@ void LLAppViewer::writeDebugInfo(bool isStatic)
...
@@ -3051,14 +3051,11 @@ void LLAppViewer::writeDebugInfo(bool isStatic)
?
getStaticDebugFile
()
?
getStaticDebugFile
()
:
getDynamicDebugFile
()
);
:
getDynamicDebugFile
()
);
LL_INFOS
()
<<
"
Open
ing debug file "
<<
*
debug_filename
<<
LL_ENDL
;
LL_INFOS
()
<<
"
Writ
ing debug file "
<<
*
debug_filename
<<
LL_ENDL
;
llofstream
out_file
(
debug_filename
->
c_str
());
llofstream
out_file
(
debug_filename
->
c_str
());
isStatic
?
LLSDSerialize
::
toPrettyXML
(
gDebugInfo
,
out_file
)
isStatic
?
LLSDSerialize
::
toPrettyXML
(
gDebugInfo
,
out_file
)
:
LLSDSerialize
::
toPrettyXML
(
gDebugInfo
[
"Dynamic"
],
out_file
);
:
LLSDSerialize
::
toPrettyXML
(
gDebugInfo
[
"Dynamic"
],
out_file
);
out_file
.
close
();
}
}
LLSD
LLAppViewer
::
getViewerInfo
()
const
LLSD
LLAppViewer
::
getViewerInfo
()
const
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llappviewermacosx.cpp
+
25
−
8
View file @
8d4e6b6d
...
@@ -165,6 +165,14 @@ void cleanupViewer()
...
@@ -165,6 +165,14 @@ void cleanupViewer()
class
CrashMetadataSingleton
:
public
CrashMetadata
,
public
LLSingleton
<
CrashMetadataSingleton
>
class
CrashMetadataSingleton
:
public
CrashMetadata
,
public
LLSingleton
<
CrashMetadataSingleton
>
{
{
LLSINGLETON
(
CrashMetadataSingleton
);
LLSINGLETON
(
CrashMetadataSingleton
);
// convenience method to log each metadata field retrieved by constructor
std
::
string
get_metadata
(
const
LLSD
&
info
,
const
LLSD
::
String
&
key
)
const
{
std
::
string
data
(
info
[
key
].
asString
());
LL_INFOS
()
<<
" "
<<
key
<<
"='"
<<
data
<<
"'"
<<
LL_ENDL
;
return
data
;
}
};
};
// Populate the fields of our public base-class struct.
// Populate the fields of our public base-class struct.
...
@@ -176,17 +184,26 @@ CrashMetadataSingleton::CrashMetadataSingleton()
...
@@ -176,17 +184,26 @@ CrashMetadataSingleton::CrashMetadataSingleton()
staticDebugPathname
=
*
gViewerAppPtr
->
getStaticDebugFile
();
staticDebugPathname
=
*
gViewerAppPtr
->
getStaticDebugFile
();
std
::
ifstream
static_file
(
staticDebugPathname
);
std
::
ifstream
static_file
(
staticDebugPathname
);
LLSD
info
;
LLSD
info
;
if
(
static_file
.
is_open
()
&&
if
(
!
static_file
.
is_open
())
LLSDSerialize
::
deserialize
(
info
,
static_file
,
LLSDSerialize
::
SIZE_UNLIMITED
))
{
LL_INFOS
()
<<
"Can't open '"
<<
staticDebugPathname
<<
"'; no metadata about previous run"
<<
LL_ENDL
;
}
else
if
(
!
LLSDSerialize
::
deserialize
(
info
,
static_file
,
LLSDSerialize
::
SIZE_UNLIMITED
))
{
LL_INFOS
()
<<
"Can't parse '"
<<
staticDebugPathname
<<
"'; no metadata about previous run"
<<
LL_ENDL
;
}
{
{
logFilePathname
=
info
[
"SLLog"
].
asString
();
LL_INFOS
()
<<
"Metadata from '"
<<
staticDebugPathname
<<
"':"
<<
LL_ENDL
;
userSettingsPathname
=
info
[
"SettingsFilename"
].
asString
();
logFilePathname
=
get_metadata
(
info
,
"SLLog"
);
OSInfo
=
info
[
"OSInfo"
].
asString
();
userSettingsPathname
=
get_metadata
(
info
,
"SettingsFilename"
);
agentFullname
=
info
[
"LoginName"
].
asString
();
OSInfo
=
get_metadata
(
info
,
"OSInfo"
);
agentFullname
=
get_metadata
(
info
,
"LoginName"
);
// Translate underscores back to spaces
// Translate underscores back to spaces
LLStringUtil
::
replaceChar
(
agentFullname
,
'_'
,
' '
);
LLStringUtil
::
replaceChar
(
agentFullname
,
'_'
,
' '
);
regionName
=
info
[
"CurrentRegion"
].
asString
(
);
regionName
=
get_metadata
(
info
,
"CurrentRegion"
);
fatalMessage
=
info
[
"FatalMessage"
].
asString
(
);
fatalMessage
=
get_metadata
(
info
,
"FatalMessage"
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment