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

Remove editor input console log #13346

Closed
IAliceBobI opened this issue Dec 3, 2024 · 12 comments
Closed

Remove editor input console log #13346

IAliceBobI opened this issue Dec 3, 2024 · 12 comments
Assignees
Milestone

Comments

@IAliceBobI
Copy link

IAliceBobI commented Dec 3, 2024

移除编辑器输入日志

image
v3.1.14 每次打开开发者工具,都会打印一些内容块。 希望能有选项关掉。

@TCOTC
Copy link
Contributor

TCOTC commented Dec 3, 2024

这个确实

@wish5115
Copy link

wish5115 commented Dec 3, 2024

其实没用的,即使官方不输出,插件里也会输出一堆

@IAliceBobI
Copy link
Author

IAliceBobI commented Dec 3, 2024 via email

@wish5115
Copy link

wish5115 commented Dec 3, 2024

主要是我开发插件要看。 我的插件不输出这些。

---原始邮件--- 发件人: @.> 发送时间: 2024年12月3日(周二) 晚上6:27 收件人: @.>; 抄送: @.@.>; 主题: Re: [siyuan-note/siyuan] 每次打开开发者工具,都会打印一些内容块。 希望能有选项关掉。 (Issue #13346) 其实没用的,即使官方不输出,插件里也会输出一堆 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

image

过滤下就好了,官方输出的就是九牛一毛而已,仅仅官方去掉输出解决不了你的问题。

@TCOTC
Copy link
Contributor

TCOTC commented Dec 3, 2024

不影响,还是去掉更好

@Vanessa219 Vanessa219 changed the title 每次打开开发者工具,都会打印一些内容块。 希望能有选项关掉。 移除编辑器输入日志 Dec 4, 2024
@Vanessa219 Vanessa219 added this to the 3.1.15 milestone Dec 4, 2024
Vanessa219 added a commit that referenced this issue Dec 4, 2024
@88250 88250 changed the title 移除编辑器输入日志 Remove editor input console log Dec 4, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Dec 24, 2024

@Vanessa219 拖动开发者工具输出的这个能不能也去掉:

image

@Vanessa219
Copy link
Member

这个我的不会输出

@TCOTC
Copy link
Contributor

TCOTC commented Dec 24, 2024

@Vanessa219 这个:

console.log(topElement);

@wish5115
Copy link

建议搞个全局函数,然后判断仅开发环境输出

@TCOTC
Copy link
Contributor

TCOTC commented Dec 24, 2024

我希望开发环境也去掉,因为我一直用的都是开发环境🫠

@IAliceBobI
Copy link
Author

一些打包工具可以去掉js中的输出的。

@wish5115
Copy link

我希望开发环境也去掉,因为我一直用的都是开发环境🫠

哦哦,不要小看console.log,如果在循环里,且数据量大的话,这个输出直接让性能断崖式下降,毕竟是io操作。

mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants