Skip to content

Commit

Permalink
Fix tracing configuration following API changes - move configuration …
Browse files Browse the repository at this point in the history
…from the final client to the rust side.

- relates to matrix-org/matrix-rust-sdk#4492
  • Loading branch information
stefanceriu authored and poljar committed Jan 10, 2025
1 parent bb8c128 commit 4ba6c4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ func DeleteOldLogs(prefix string) {
func SetupLogs(prefix string) {
// log new files
matrix_sdk_ffi.SetupTracing(matrix_sdk_ffi.TracingConfiguration{
LogLevel: matrix_sdk_ffi.LogLevelTrace,
ExtraTargets: nil,
WriteToStdoutOrSystem: false,
Filter: "debug,hyper=warn,log=warn,eyeball=warn,matrix_sdk_common=trace,matrix_sdk_base=trace", //,matrix_sdk_ffi=trace,matrix_sdk=trace,matrix_sdk_crypto=trace,matrix_sdk_base=trace,matrix_sdk_ui=trace",
WriteToFiles: &matrix_sdk_ffi.TracingFileConfiguration{
Path: "./logs",
FilePrefix: prefix,
Expand Down

0 comments on commit 4ba6c4a

Please sign in to comment.