Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
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
Alchemy Viewer
Alchemy Viewer
Commits
787053ff
Commit
787053ff
authored
6 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
DRTVWR-447: Add logging to BugsplatMac override methods.
parent
7dc01447
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llappdelegate-objc.mm
+14
-7
14 additions, 7 deletions
indra/newview/llappdelegate-objc.mm
with
14 additions
and
7 deletions
indra/newview/llappdelegate-objc.mm
+
14
−
7
View file @
787053ff
...
...
@@ -198,10 +198,11 @@
-
(
NSString
*
)
applicationLogForBugsplatStartupManager
:(
BugsplatStartupManager
*
)
bugsplatStartupManager
{
infos
(
"Reached applicationLogForBugsplatStartupManager"
);
std
::
string
fatalMessage
(
CrashMetadata_instance
().
fatalMessage
);
infos
(
"applicationLogForBugsplatStartupManager -> '"
+
fatalMessage
+
"'"
);
// This strangely-named override method contributes the User Description
// metadata field.
return
[
NSString
stringWithCString
:
CrashMetadata_instance
().
fatalMessage
.
c_str
()
return
[
NSString
stringWithCString
:
fatalMessage
.
c_str
()
encoding:
NSUTF8StringEncoding
];
}
...
...
@@ -214,25 +215,31 @@
// written (and rewritten) to the static_debug_info.log file that we read
// at the start of the next viewer run. It seems ridiculously expensive to
// rewrite that file on every frame in which the avatar moves.
return
[
NSString
stringWithCString
:
CrashMetadata_instance
().
regionName
.
c_str
()
std
::
string
regionName
(
CrashMetadata_instance
().
regionName
);
infos
(
"applicationKeyForBugsplatStartupManager -> '"
+
regionName
+
"'"
);
return
[
NSString
stringWithCString
:
regionName
.
c_str
()
encoding:
NSUTF8StringEncoding
];
}
-
(
NSString
*
)
defaultUserNameForBugsplatStartupManager
:(
BugsplatStartupManager
*
)
bugsplatStartupManager
{
return
[
NSString
stringWithCString
:
CrashMetadata_instance
().
agentFullname
.
c_str
()
std
::
string
agentFullname
(
CrashMetadata_instance
().
agentFullname
);
infos
(
"defaultUserNameForBugsplatStartupManager -> '"
+
agentFullname
+
"'"
);
return
[
NSString
stringWithCString
:
agentFullname
.
c_str
()
encoding:
NSUTF8StringEncoding
];
}
-
(
NSString
*
)
defaultUserEmailForBugsplatStartupManager
:(
BugsplatStartupManager
*
)
bugsplatStartupManager
{
// Use the email field for OS version, just as we do on Windows, until
// BugSplat provides more metadata fields.
return
[
NSString
stringWithCString
:
CrashMetadata_instance
().
OSInfo
.
c_str
()
std
::
string
OSInfo
(
CrashMetadata_instance
().
OSInfo
);
infos
(
"defaultUserEmailForBugsplatStartupManager -> '"
+
OSInfo
+
"'"
);
return
[
NSString
stringWithCString
:
OSInfo
.
c_str
()
encoding:
NSUTF8StringEncoding
];
}
-
(
void
)
bugsplatStartupManagerWillSendCrashReport
:(
BugsplatStartupManager
*
)
bugsplatStartupManager
{
infos
(
"
Reached
bugsplatStartupManagerWillSendCrashReport"
);
infos
(
"bugsplatStartupManagerWillSendCrashReport"
);
}
-
(
BugsplatAttachment
*
)
attachmentForBugsplatStartupManager
:(
BugsplatStartupManager
*
)
bugsplatStartupManager
{
...
...
@@ -252,7 +259,7 @@
[[
BugsplatAttachment
alloc
]
initWithFilename
:
@"SecondLife.log"
attachmentData:
data
contentType:
@"text/plain"
];
infos
(
"attachmentForBugsplatStartupManager
:
attaching "
+
logfile
);
infos
(
"attachmentForBugsplatStartupManager attaching "
+
logfile
);
return
attachment
;
}
...
...
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