From da727740ab45f780082243745d00512a9b1e1e0e Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 9 Oct 2020 00:22:29 +0200 Subject: [PATCH] use warn! for ffi-usage-errors --- deltachat-ffi/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 7b73c0d0b..d9c617af1 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -1071,7 +1071,7 @@ pub unsafe extern "C" fn dc_set_chat_protection( let protect = if let Some(s) = ProtectionStatus::from_i32(protect) { s } else { - eprintln!("bad protect-value for dc_set_chat_protection()"); + warn!(ctx, "bad protect-value for dc_set_chat_protection()"); return 0; }; @@ -1207,6 +1207,7 @@ pub unsafe extern "C" fn dc_create_group_chat( let protect = if let Some(s) = ProtectionStatus::from_i32(protect) { s } else { + warn!(ctx, "bad protect-value for dc_create_group_chat()"); return 0; };