add log
This commit is contained in:
@@ -181,6 +181,8 @@ func ResponseDeleteSuratKontrol(url string, header *config.Header, headers map[s
|
|||||||
log.Printf("Error json marshal: %v", err)
|
log.Printf("Error json marshal: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Println("REQUEST: ", string(reqMarshall))
|
||||||
|
|
||||||
req, err := http.NewRequest("DELETE", url, bytes.NewReader(reqMarshall))
|
req, err := http.NewRequest("DELETE", url, bytes.NewReader(reqMarshall))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error creating request: %v", err)
|
log.Printf("Error creating request: %v", err)
|
||||||
|
|||||||
@@ -288,6 +288,8 @@ func DeleteSuratKontrol(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Println("REQUEST: ", req)
|
||||||
|
|
||||||
timeNow := time.Now().Format("2006-01-02 15:04:05")
|
timeNow := time.Now().Format("2006-01-02 15:04:05")
|
||||||
|
|
||||||
if req.NomorSurKon == "" {
|
if req.NomorSurKon == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user