File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ async fn serve_req(
151
151
payload. extend_from_slice ( & chunk) ;
152
152
}
153
153
154
+ log:: info!( "/zulip-hook request body: {:?}" , str :: from_utf8( & payload) ) ;
154
155
let req = match serde_json:: from_slice ( & payload) {
155
156
Ok ( r) => r,
156
157
Err ( e) => {
Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ async fn handle_command<'a>(
188
188
}
189
189
190
190
let cmd = parse_cli :: < ChatCommand , _ > ( words. into_iter ( ) ) ?;
191
+ tracing:: info!( "command parsed to {cmd:?} (impersonated: {impersonated})" ) ;
192
+
191
193
let output = match & cmd {
192
194
ChatCommand :: Acknowledge { identifier } => {
193
195
acknowledge ( & ctx, gh_id, identifier. into ( ) ) . await
@@ -249,7 +251,10 @@ async fn handle_command<'a>(
249
251
if cmd_index >= words. len ( ) {
250
252
return Ok ( Some ( "Unknown command" . to_string ( ) ) ) ;
251
253
}
254
+
252
255
let cmd = parse_cli :: < StreamCommand , _ > ( words[ cmd_index..] . into_iter ( ) . copied ( ) ) ?;
256
+ tracing:: info!( "command parsed to {cmd:?}" ) ;
257
+
253
258
match cmd {
254
259
StreamCommand :: EndTopic => post_waiter ( & ctx, message_data, WaitingMessage :: end_topic ( ) )
255
260
. await
You can’t perform that action at this time.
0 commit comments