Skip to content

Commit

Permalink
Minor adjustment to debug log.
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuo committed Dec 13, 2023
1 parent a2a7c94 commit 649935e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Planet/PlanetAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ extension PlanetAPI {
return .notFound()
}
let info: [String: Any] = processPlanetArticleRequest(r)
debugPrint("Planet API: createPlanetArticle: info: \(info)")
// debugPrint("Planet API: createPlanetArticle: info: \(info)")
let articleTitle = info["title"] as? String ?? ""
let articleDateString = info["date"] as? String ?? Date().dateDescription()
let articleContent = info["content"] as? String ?? ""
Expand Down Expand Up @@ -718,9 +718,9 @@ extension PlanetAPI {
let multipartDatas = r.parseMultiPartFormData()
let supportedContentTypes: [String] = AttachmentType.supportedImageContentTypes + AttachmentType.supportedAudioContentTypes + AttachmentType.supportedVideoContentTypes
for multipartData in multipartDatas {
debugPrint("Planet API: processPlanetArticleRequest: multipartData: \(multipartData)")
// debugPrint("Planet API: processPlanetArticleRequest: multipartData: \(multipartData)")
guard let propertyName = multipartData.name else { continue }
debugPrint("Planet API: processPlanetArticleRequest: propertyName: \(propertyName)")
// debugPrint("Planet API: processPlanetArticleRequest: propertyName: \(propertyName)")
switch propertyName {
case "title", "date", "content":
info[propertyName] = String(decoding: multipartData.body, as: UTF8.self)
Expand Down

0 comments on commit 649935e

Please sign in to comment.