You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite having NO explicit print statements, this code prints out this logging statement:
2017-03-31 09:08:16.758 swift[22119:8ed8f780] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon or value in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolonOrValue to debug.
,IN ADDITION to having an error thrown by `PropertyListSerialization.propertyList(from:, format)`.
Additional Detail from JIRA
md5: 7e26fbf2abb60b1f3c314edbad299f85
Issue Description:
Sample code:
Despite having NO explicit print statements, this code prints out this logging statement:
2017-03-31 09:08:16.758 swift[22119:8ed8f780] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon or value in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolonOrValue to debug.
,IN ADDITION to having an error thrown by `PropertyListSerialization.propertyList(from:, format)`.
Throwing an error should be enough; there is no need to further print a log statement, which is exacerbated by the inability to turn off the logging of said statement. I believe the log statement is coming from this file in CoreFoundation: https://github.com/apple/swift-corelibs-foundation/blob/173e9ea16cf1a0ed9b21cc11ea8a2d15b3f8dca9/CoreFoundation/Parsing.subproj/CFOldStylePList.c
Tested on Swift 3.1 on OSX and Ubuntu 16.04.
The text was updated successfully, but these errors were encountered: