Skip to content

Commit

Permalink
Adjust string, set level back to info
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 30, 2023
1 parent 285e6d8 commit 0e9b6e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qml/MessageLog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ Page {
QfButton {
id: submitLog
Layout.fillWidth: true
text: qsTr( 'Send application log' )
visible: true//qfieldSettings.enableInfoCollection && platformUtilities.capabilities & PlatformUtilities.SentryFramework
text: qsTr("Send application log")
visible: qfieldSettings.enableInfoCollection && platformUtilities.capabilities & PlatformUtilities.SentryFramework

onClicked: {
applicationLogDialog.open()
Expand Down Expand Up @@ -179,7 +179,7 @@ Page {
Label {
id: applicationLogLabel
width: mainWindow.width - 60 < applicationLogLabelMetrics.width ? mainWindow.width - 60 : applicationLogLabelMetrics.width
text: qsTr("Type a message to attach to your application log:")
text: qsTr("this will send a log of your current session to the development team. You only need to do this when you are asked for it.")
wrapMode: Text.WordWrap
font: Theme.defaultFont
color: Theme.mainTextColor
Expand All @@ -188,6 +188,7 @@ Page {
QfTextField {
id: appliationLogInput
width: applicationLogLabel.width
placeholderText: qsTr("Type optional details")
}

CheckBox {
Expand Down
2 changes: 2 additions & 0 deletions src/sentry/sentry_classic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ namespace sentry_wrapper
void capture_event( const char *message, const char *cloudUser )
{
sentry_value_t event = sentry_value_new_event();
sentry_value_set_by_key( event, "level", sentry__value_new_level( SENTRY_LEVEL_INFO ) );
sentry_value_set_by_key( event, "logger", sentry_value_new_string( "custom" ) );
sentry_value_set_by_key( event, "message", sentry_value_new_string( message ) );
sentry_value_t contexts = sentry_value_new_object();
sentry_value_set_by_key( contexts, "cloud_user", sentry_value_new_string( cloudUser ) );
Expand Down

0 comments on commit 0e9b6e6

Please sign in to comment.