File tree Expand file tree Collapse file tree
internal/project/lib/core/receive Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ var FormMetadataCacheMutex sync.Mutex
1919// client and stores it in the value pointed to by value.
2020func Form (client * clients.Client , value any ) bool {
2121 if client .WebSocket != nil {
22- client .Options .ErrorLog .Println ("web socket connections cannot parse forms" , stack .Trace ())
22+ client .Options .ErrorLog .Printf (
23+ "receive.Form: web socket connections cannot parse forms\n %s" ,
24+ stack .Trace (),
25+ )
2326 return false
2427 }
2528 isMultipart := true
@@ -28,14 +31,21 @@ func Form(client *clients.Client, value any) bool {
2831 if errors .Is (err , http .ErrNotMultipart ) {
2932 isMultipart = false
3033 } else {
31- client .Options .ErrorLog .Println (err , stack .Trace ())
34+ client .Options .ErrorLog .Printf (
35+ "receive.Form: failed to parse multipart form: %v\n %s" ,
36+ err ,
37+ stack .Trace (),
38+ )
3239 return false
3340 }
3441 }
3542 }
3643 reflection := reflect .ValueOf (value )
3744 if reflection .Kind () != reflect .Pointer {
38- client .Options .ErrorLog .Println ("form value must be a pointer" , stack .Trace ())
45+ client .Options .ErrorLog .Printf (
46+ "receive.Form: form value must be a pointer\n %s" ,
47+ stack .Trace (),
48+ )
3949 return false
4050 }
4151 reflection = reflection .Elem ()
You can’t perform that action at this time.
0 commit comments