Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在安卓机上log日志不显示,网络请求和存储正常 #283

Closed
4 tasks done
JFPURE opened this issue Nov 20, 2024 · 8 comments
Closed
4 tasks done

在安卓机上log日志不显示,网络请求和存储正常 #283

JFPURE opened this issue Nov 20, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@JFPURE
Copy link

JFPURE commented Nov 20, 2024

Describe the bug

用uniapp小程序sdk写的项目,集成进ios和android原生项目里,运行时在安卓机上没有log日志显示,网络请求和存储正常,在ios机上都正常。
/
iShot_2024-11-20_17 00 23

Steps to reproduce

No response

System Info

pagespy版本是1.9.3

Logs

2024/11/20 16:54:36
[PageSpy] [LOG]
Room ID: 5ae9
/
2024/11/20 16:54:36
[PageSpy] [LOG]
Plugins inited

Validations

@JFPURE JFPURE added the bug Something isn't working label Nov 20, 2024
@qkang07
Copy link
Collaborator

qkang07 commented Dec 17, 2024

只是个猜测,你代码里用的 console.log 和 这两行日志用的不是一个。。。

@JFPURE
Copy link
Author

JFPURE commented Dec 17, 2024 via email

@JFPURE
Copy link
Author

JFPURE commented Dec 19, 2024

只是个猜测,你代码里用的 console.log 和 这两行日志用的不是一个。。。

这两行是pagespy自己的log呀,我自己的console.log 不会带这个前缀
image

@qkang07
Copy link
Collaborator

qkang07 commented Dec 20, 2024

根据实验结果,console.log 无法输出而 console['log']可以,推测 console.log 被 uniapp 编译为其他形式。

@qkang07
Copy link
Collaborator

qkang07 commented Jan 20, 2025

uniapp 劫持 console.log 导致

@qkang07 qkang07 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
@JFPURE
Copy link
Author

JFPURE commented Jan 20, 2025 via email

@JFPURE
Copy link
Author

JFPURE commented Jan 20, 2025

uniapp hijack(劫持) 了 console.log,导致

请问有解决的办法不?

@qkang07
Copy link
Collaborator

qkang07 commented Jan 20, 2025

可以自己写个函数
const log = console['log']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants