@@ -449,7 +449,7 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
449449
450450 JamfPro . shared. getToken ( serverUrl: JamfProServer . server) {
451451 ( statusCode, result) in
452- print ( " [apiCall] getToken: statusCode: \( statusCode) , result: \( result) " )
452+ // print("[apiCall] getToken: statusCode: \(statusCode), result: \(result)")
453453 if result == " success " {
454454
455455 let encodedURL = NSURL ( string: self . endpointUrl)
@@ -906,7 +906,7 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
906906 // print("[getDetails] self.singleEndpointXmlTag: \(self.singleEndpointXmlTag)")
907907 if self . menuIdentifier. prefix ( 5 ) == " apps_ " || self . menuIdentifier. prefix ( 5 ) == " cp_al " { self . singleEndpointXmlTag = self . menuIdentifier }
908908
909- print ( " [getDetails] singleEndpointXmlTag: \( singleEndpointXmlTag) " )
909+ // print("[getDetails] singleEndpointXmlTag: \(singleEndpointXmlTag)")
910910 // print("[getDetails] \(singleEndpointXmlTag) thePackageArray: \(endpointInfo["printers"] ?? "nil" as AnyObject)")
911911
912912 switch singleEndpointXmlTag {
@@ -1334,8 +1334,8 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
13341334 case " advanced_computer_search " , " advanced_mobile_device_search " :
13351335 var eaType = " "
13361336 for theCriteriaName in criteriaArray {
1337- print ( " \( theCriteriaName) " )
1338- print ( " \( oSingleEndpointXmlTag) \n " )
1337+ // print("\(theCriteriaName)")
1338+ // print("\(oSingleEndpointXmlTag)\n")
13391339 if oSingleEndpointXmlTag. contains ( " _extension_attribute " ) {
13401340 if let _ = objectByNameDict [ theCriteriaName] ? [ " input_type " ] ? [ " type " ] {
13411341 eaType = objectByNameDict [ theCriteriaName] ![ " input_type " ] ![ " type " ] as! String
@@ -1348,8 +1348,8 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
13481348 }
13491349 // see if EA is used as a display field
13501350 for displayFieldName in displayFieldsArray {
1351- print ( " [dispay field] name: \( displayFieldName) " )
1352- print ( " [dispay field] oSingleEndpointXmlTag: \( oSingleEndpointXmlTag) " )
1351+ // print("[dispay field] name: \(displayFieldName)")
1352+ // print("[dispay field] oSingleEndpointXmlTag: \(oSingleEndpointXmlTag)")
13531353 if oSingleEndpointXmlTag. contains ( " _extension_attribute " ) {
13541354 if let _ = objectByNameDict [ displayFieldName] ? [ " input_type " ] ? [ " type " ] {
13551355 eaType = objectByNameDict [ displayFieldName] ![ " input_type " ] ![ " type " ] as! String
@@ -1366,9 +1366,7 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
13661366 case " cp_all_iOS " , " cp_all_macOS " :
13671367 summaryArray. append ( EndpointData ( column1: " \( recordName) " , column2: " \( payloadArray) " , column3: " \( self . theScope) " , column4: " \( limitationsExclusions [ " limitations " ] ?? [ ] ) " , column5: " \( limitationsExclusions [ " exclusions " ] ?? [ ] ) " , column6: " " , column7: " " ) )
13681368 details_TextView. string. append ( " \( recordName) \t \( payloadArray) \t \( theScope) \t \( limitationsExclusions [ " limitations " ] ?? [ ] ) \t \( limitationsExclusions [ " exclusions " ] ?? [ ] ) \n " )
1369- // case "osxconfigurationprofiles":
1370- // summaryArray.append(endpointData(column1: "\(theRecord[0])", column2: "\(theRecord[1])", column3: "\(theRecord[2])", column4: "\(limitationsExclusions["limitations"] ?? [])", column5: "\(limitationsExclusions["exclusions"] ?? [])", column6: "", column7: ""))
1371- // details_TextView.string.append("\(recordName)\t\(payloadArray)\t\(theScope)\t\(limitationsExclusions["limitations"] ?? [])\t\(limitationsExclusions["exclusions"] ?? [])\n")
1369+
13721370 default :
13731371 break
13741372 }
@@ -1395,7 +1393,6 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
13951393 summaryArray. append ( EndpointData ( column1: " \( theRecord [ 0 ] ) " , column2: " \( theRecord [ 1 ] ) " , column3: " \( theRecord [ 2 ] ) " , column4: " \( theRecord [ 3 ] ) " , column5: " " , column6: " " , column7: " " ) )
13961394 details_TextView. string. append ( " \( theRecord [ 0 ] ) \t \( theRecord [ 1 ] ) \t \( theRecord [ 2 ] ) \t \( theRecord [ 3 ] ) \n " )
13971395 case 3 :
1398- print ( " case 3 " )
13991396 if theRecord [ 0 ] != " " {
14001397 summaryArray. append ( EndpointData ( column1: " \( theRecord [ 0 ] ) " , column2: " \( theRecord [ 1 ] ) " , column3: " \( theRecord [ 2 ] ) " , column4: " " , column5: " " , column6: " " , column7: " " ) )
14011398 details_TextView. string. append ( " \( theRecord [ 0 ] ) \t \( theRecord [ 1 ] ) \t \( theRecord [ 2 ] ) \n " )
@@ -1606,7 +1603,7 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
16061603 WriteToLog . shared. message ( " [getLimitationsExceptions] endpointType: \( endpointType) " )
16071604
16081605 if let scope = endpointInfo [ " scope " ] as? [ String : AnyObject ] {
1609- print ( " [getLimitationsExceptions] scope: \( scope) " )
1606+ // print("[getLimitationsExceptions] scope: \(scope)")
16101607 for lore in [ " limitations " , " exclusions " ] {
16111608 var currentList = [ String] ( )
16121609 if let limitationsExclusions = scope [ lore] as? [ String : AnyObject ] {
@@ -1832,7 +1829,7 @@ class ViewController: NSViewController, URLSessionDelegate, SendingLoginInfoDele
18321829
18331830 // Create the log file if it doesn't exist
18341831 if !fileManager. fileExists ( atPath: logFileURL. path) {
1835- print ( " [ViewController.viewDidLoad] Create log file: \( logFileURL. path) " )
1832+ // print("[ViewController.viewDidLoad] Create log file: \(logFileURL.path)")
18361833 fileManager. createFile ( atPath: logFileURL. path, contents: nil , attributes: nil )
18371834 }
18381835
0 commit comments