File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
datadog-crashtracker/src/shared Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ impl CrashtrackerConfiguration {
88
88
unix_socket_path : Option < String > ,
89
89
demangle_names : bool ,
90
90
) -> anyhow:: Result < Self > {
91
- panic ! ( "new" ) ;
92
91
Self :: new_with_secondary (
93
92
additional_files,
94
93
create_alt_stack,
@@ -143,10 +142,16 @@ impl CrashtrackerConfiguration {
143
142
144
143
// If no secondary endpoint is provided but we have a primary endpoint,
145
144
// derive a default secondary endpoint
145
+ // let secondary_endpoint = secondary_endpoint.or_else(|| {
146
+ // endpoint
147
+ // .as_ref()
148
+ // .and_then(|primary| derive_default_secondary_endpoint(primary))
149
+ // });
150
+
146
151
let secondary_endpoint = secondary_endpoint. or_else ( || {
147
- endpoint
148
- . as_ref ( )
149
- . and_then ( |primary| derive_default_secondary_endpoint ( primary ) )
152
+ let derived = derive_default_secondary_endpoint ( endpoint. as_ref ( ) . unwrap ( ) ) ;
153
+ panic ! ( "{}" , format! ( "new_with_secondary: {:?}" , derived ) ) ;
154
+ endpoint . as_ref ( ) . and_then ( |primary| derived )
150
155
} ) ;
151
156
152
157
// Note: don't check the receiver socket upfront, since a configuration can be interned
You can’t perform that action at this time.
0 commit comments