Expand my Community achievements bar.

is it possible to stop printing the error with AEP SDKs?

Avatar

Level 1

We are using AEP frameworks for our iOS apps, we can see the traces logs in the Xcode console which is good. During development we are not much concerned about connection to adobe we just wants to see the analytics logs to verify if data we are sending are correct or not.
but along with analytics logs it also prints bunch of continuous errors related to configuration file which makes console flooded with it and then it is difficult to find the correct logs. Example of continuous error which gets print in console:

2022-02-23 16:02:31.447329+0530 iphone_svc_app[19494:858542] Task <7A45EFFE-88D1-45E5-9414-75CF55CAAE00>.<8> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x60000138c780 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <7A45EFFE-88D1-45E5-9414-75CF55CAAE00>.<8>, _NSURLErrorRelatedURLSessionTaskErrorKey=(

    "LocalDataTask <7A45EFFE-88D1-45E5-9414-75CF55CAAE00>.<8>"

), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json, NSErrorFailingURLKey=https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json, _kCFStreamErrorDomainKey=1}

2022-02-23 16:02:31.450324+0530 iphone_svc_app[19494:858542] [AEP SDK ERROR - <ConfigurationDownloader>] Loading config from URL https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json failed with response code: nil

2022-02-23 16:02:31.450538+0530 iphone_svc_app[19494:858542] [AEP SDK TRACE - <com.adobe.module.configuration>] Downloading config failed, trying again

2022-02-23 16:02:36.942752+0530 iphone_svc_app[19494:858784] [AEP SDK DEBUG - <NetworkService>] Initiated (GET) network request to (https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json).

2022-02-23 16:02:36.947127+0530 iphone_svc_app[19494:858784] Connection 10: received failure notification

2022-02-23 16:02:36.947316+0530 iphone_svc_app[19494:858784] Connection 10: failed to connect 1:50, reason -1

2022-02-23 16:02:36.947456+0530 iphone_svc_app[19494:858784] Connection 10: encountered error(1:50)

2022-02-23 16:02:36.948667+0530 iphone_svc_app[19494:859004] Task <E1338662-EA06-40DB-A4E3-C157A63ADFEC>.<9> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])

2022-02-23 16:02:36.949129+0530 iphone_svc_app[19494:858784] Task <E1338662-EA06-40DB-A4E3-C157A63ADFEC>.<9> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x6000013b0180 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E1338662-EA06-40DB-A4E3-C157A63ADFEC>.<9>, _NSURLErrorRelatedURLSessionTaskErrorKey=(

    "LocalDataTask <E1338662-EA06-40DB-A4E3-C157A63ADFEC>.<9>"

), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json, NSErrorFailingURLKey=https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json, _kCFStreamErrorDomainKey=1}

2022-02-23 16:02:36.951704+0530 iphone_svc_app[19494:858784] [AEP SDK ERROR - <ConfigurationDownloader>] Loading config from URL https://assets.adobedtm.com/launch-ENfc0e1c5a935f48ee93bfc3af8838a545-development.json failed with response code: nil

2022-02-23 16:02:36.951882+0530 iphone_svc_app[19494:858784] [AEP SDK TRACE - <com.adobe.module.configuration>] Downloading config failed, trying again

2022-02-23 16:02:41.953253+0530 iphone_svc_app[19494:859006] [AEP SDK DEBUG - <NetworkService>] Initiated (GET)



Is it possible to stop printing this errors?

1 Reply

Avatar

Level 5

Hi @SatishKum, it's an old question and hope the issue has been solved. If not, then you can set the log level for AEP extension, some details are available here - https://aep-sdks.gitbook.io/docs/resources/building-mobile-extensions/logging-from-extension

Feel free to post your answer, if solved!