AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows

Home Page:https://pub.dev/packages/agora_rtc_engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unreadable Log output file (agorasdk.log) after upgrade to 6.3.0

yashpalzala opened this issue · comments

Version of the agora_rtc_engine

6.3.0

Platforms affected

  • Android
  • iOS
  • macOS
  • Windows
  • Web

Steps to reproduce

  1. Set the log config file while initialising engine like this :
    await _engine.initialize(RtcEngineContext( appId: appId, logConfig: LogConfig(level: LogLevel.logLevelInfo)));
  2. Try to open log output file (agorasdk.log)

Expected results

Should show proper logs like -

[04/09/24 17:42:58:417][15386][I]:[SHIM] NotifyNetworkPreChang [04/09/24 17:42:58:417][15386][I]:[SHIM] NotifyNetworkChanged from -1 to 5 [04/09/24 17:42:58:417][15386][I]:[local-ap] local ap manager initialize [04/09/24 17:42:58:417][15386][I]:[ipstack]: start ipv4 detecting [04/09/24 17:42:58:418][15386][I]:[ap-base] initialize ap list [04/09/24 17:42:58:418][15386][I]:[ap-base] append predefined ip: 123.******.221, 13.******.184, 52.******.111, 168.******.216, 20.******.143, 18.******.59, 54.******.178, 101.******.165, 52.******.238, 3.******.108, 15.******.208, 18.******.254, 54.******.11, 18.******.64, 184.******.217, 3.******.239, 3.******.253, 2a05:******:239, 2406:******:253, 2406:******:60, 2600:******:217, 2406:******:64, 2408:******:affb, 2406:******:108, [04/09/24 17:42:58:419][15386][I]:[ap-base] append predefined ip: 2406:******:196, 129.******.143, 122.******.142, 152.******.85, [04/09/24 17:42:58:419][15386][I]:[ap-base] append predefined ip: 2406:******:196, 129.******.143, 122.******.142, 152.******.85, [04/09/24 17:42:58:419][15386][I]:[ap-base] queryDns ap5-tls.agora.io [04/09/24 17:42:58:421][15386][I]:[ap-base] queryDns ap4.agora.io [04/09/24 17:42:58:422][15386][I]:[ap-base] queryDns ap-ipv6.agora.io

Actual results

But the output file shows like -
/�I�Z�)�R��Hʷ���.�s��v<=C�: �y������'�H��2-:��zZa������Pb%��_S��隙A��v�������: �7A�Z ��'�W)�sҀ���� @%�����Jh�������(�Tr��~�$E����?��v���?��2���ߋt�_���[b�7ע�����@�b�M~� r����%�T��A��'�E��nv��+� c�!h�Щ�&��@��L�b"� ���A��1?$�i���5{#�����H̑����P{��]9��YG�]��g�2���CN�&Hk������o��������*�YM iU� �Q�^������Ժ�x �̼��^�<W���F���P��ށ�@�M����Y�A�xQ���=���ʵv������������4
f������K�0+a�������&e.���d� 9�޽�K4�����X��t����f��C#���<P�x���tG�K̞���+����X�����'kI�ՙ��U޼��a��z� �w��RR�f�.�X�Lz�?�6ꥈ�����Dp�wu�?>�]c�}O�ilD��%�c�U���F&���8�h�����$���?
����S�d��W�)��&� �dB?����iӫ��=�Ƥ���=3�[�p�ic�xӊ��������HP�s��9 ¤�K� ���Q������ɸ�ES����/.c���v������MΪ

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.4 23E214 darwin-arm64, locale en-IN)
    • Flutter version 3.19.6 on channel stable at /Users/{user-name}/flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (3 weeks ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/{user-name}/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more
      details.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google
    Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    ✗ Android Studio not found at /Applications/Android Studio.app/Contents
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.88.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.88.0

[✓] Connected device (2 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 12 (API 31)
      (emulator)
    • macOS (desktop)             • macos         • darwin-arm64  • macOS 14.4 23E214
      darwin-arm64

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 3 categories.

In order to prevent user privacy from being obtained by obtaining agorasdk.log, the log is encrypted after native SDK 4.3.0. If you need to decrypt the log, please contact Agora support for help.

Ok, so we as a developer cannot decrypt in anyways? Also this is encryption change is not documented anywhere after 4.3.0.

Ok, so we as a developer cannot decrypt in anyways?

Yes.

This change was mentioned on the full release note.
https://docs.agora.io/en/video-calling/overview/release-notes?platform=flutter#v630

Got it, thanks for replying.

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.