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

[Question] 自定义消息通知失败 #947

Open
wangweishi opened this issue Oct 26, 2023 · 3 comments
Open

[Question] 自定义消息通知失败 #947

wangweishi opened this issue Oct 26, 2023 · 3 comments

Comments

@wangweishi
Copy link

描述问题
我使用了3.1.6.3版本的源代码编译并安装。
1. 我对sendMail.go中的通知提示进行了个性化修改。在提交工单时,会根据我修改的内容发送通知,但工单执行成功后的最终通知消息仍然会显示原始信息。
2. 我已经更改了上面go文件中的所有相关内容,然后过滤了整个源代码包,但是我没有找到任何关于“Yearning消息推送”的相关语句。我还搜索了数据库内容,但一无所获。
3.查看nohup的启动日志。mysql审计工单也可以看消息通知,但是无法找到那条成功的推送通知日志。
4. 在sendMail.go文件中,我在SendMail函数中添加了一个fmt.Println(mail)来输出结果,但是“Yearning消息推送”邮件没有任何输出。我感觉最后成功的通知不是调用这个函数发送的
5. 钉钉也是如此。执行成功,没有按照我修改的内容发送。

截图

image
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] Custom message notification failed

Describe the problem
I used the source code of version 3.1.6.3 to compile and install.
1. I have personalized the notification prompts in sendMail.go. When submitting a work order, a notification will be sent based on the content I modified, but the final notification message after the work order is successfully executed will still display the original information.
2. I have changed all the relevant content in the go file above, and then filtered the entire source code package, but I did not find any relevant statements about "Yearning message push". I also searched the database contents but found nothing.
3. Check the startup log of nohup. MySQL audit work orders can also view message notifications, but the successful push notification log cannot be found.
4. In the sendMail.go file, I added a fmt.Println(mail) in the SendMail function to output the results, but the "Yearning Message Push" email did not have any output. I feel that the final successful notification was not sent by calling this function.
5. The same goes for DingTalk. The execution was successful, but the content I modified was not sent.

screenshot

image
image

@wangweishi
Copy link
Author

wangweishi commented Oct 26, 2023

我大概知道最后的执行成功的通知是如何发送的了。
我把smtp地址故意写错,提交工单、执行工单,查看报错日志后发现提交工单等操作是yearning程序发送的通知邮件,最后一个执行成功发送通知是由juno发送的。
juno我是用容器启的,现在这情况怎么解决呢,请问有好的办法吗

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I probably know how the final successful execution notification is sent.
I estimated that the SMTP address was wrong, submitted a work order, and executed the work order. After checking the error log, I found that the operations such as submitting the work order were notification emails sent by the yearning program. The last successful execution notification was sent by juno.
I started Juno using a container. How can I solve this problem now? Is there any good solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants