mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-04 07:15:46 +00:00 
			
		
		
		
	Attempt to capture stacktrace data when uploading a custom message to sentry
This commit is contained in:
		@@ -129,6 +129,9 @@ Future<bool> sentryReportMessage(String message, {Map<String, String>? context})
 | 
				
			|||||||
    if (context != null) {
 | 
					    if (context != null) {
 | 
				
			||||||
      scope.setExtra("context", context);
 | 
					      scope.setExtra("context", context);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // Catch stacktrace data if possible
 | 
				
			||||||
 | 
					    scope.setExtra("stacktrace", StackTrace.current.toString());
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user