File tree 1 file changed +3
-3
lines changed
src/firebase_functions/private
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def _on_call_valid_body(request: _Request) -> bool:
123
123
}
124
124
if len (extra_keys ) != 0 :
125
125
_logging .warning (
126
- "Request body has extra fields: " ,
126
+ "Request body has extra fields: %s " ,
127
127
"" .join (f"{ key } : { value } ," for (key , value ) in extra_keys .items ()),
128
128
)
129
129
return False
@@ -156,7 +156,7 @@ def _on_call_valid_content_type(request: _Request) -> bool:
156
156
157
157
# Check that the Content-Type is JSON.
158
158
if content_type .lower () != "application/json" :
159
- _logging .warning ("Request has incorrect Content-Type. " , content_type )
159
+ _logging .warning ("Request has incorrect Content-Type: %s " , content_type )
160
160
return False
161
161
162
162
return True
@@ -273,7 +273,7 @@ def on_call_check_tokens(request: _Request,) -> _OnCallTokenVerification:
273
273
errs .append (("Auth token was rejected." , log_payload ))
274
274
275
275
if len (errs ) == 0 :
276
- _logging .info ("Callable request verification passed" , log_payload )
276
+ _logging .info ("Callable request verification passed: %s " , log_payload )
277
277
else :
278
278
_logging .warning (f"Callable request verification failed: ${ errs } " ,
279
279
log_payload )
You can’t perform that action at this time.
0 commit comments