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

“blade create file append” 命令的 date 属性无法正常输出系统时间 #1003

Open
aisunyongjie opened this issue Feb 19, 2024 · 1 comment
Assignees
Labels
type/bug Something isn't working

Comments

@aisunyongjie
Copy link

Issue Description

Describe what happened (or what feature you want)

这个功能对于日志打印非常重要,直接关系到日志注入的时间属性的有效性,请帮忙在最新的版本进行修复,猜测应该是版本更新过程中出现了bug,导致日志打印获取系统时间失败

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

1、
执行命令 : blade create file append --filepath=/root/chaosblade/mock.log --content="XCRcJGFiY1wkXCQgIEB7REFURTorJVktJW0tJWQgJUg6JU06JVN9IEVSUk9SIGNiYSBAe1JBTkRPTToxMDAtMjAwfSBhYmMgIG1vY2sgZXhjZXB0aW9u" --enable-base64=true
2. 在1.3.0 版本的chaosblade 打印输出是 $$abc$$ 2024-02-19 11:04:24 ERROR cba 110 abc mock exception 是可以获取到系统时间的
3. 在1.5.0及以上版本的chaosblade 打印输出是 $$abc$$ $(date "+%Y-%m-%d %H:%M:%S") ERROR cba 110 abc mock exception ,未能获取到 系统时间

Tell us your environment

linux

Anything else we need to know?

问题复现和修复结果反馈 微信:sundongpo002

@tiny-x tiny-x added the type/bug Something isn't working label Feb 19, 2024
@tiny-x tiny-x self-assigned this Feb 19, 2024
@aisunyongjie
Copy link
Author

测试引用 chaosblade-io/chaosblade-exec-os#45
基于此链接进行测试

@aisunyongjie aisunyongjie changed the title “blade create file append” 命令的 data 属性无法正常输出系统时间 “blade create file append” 命令的 date 属性无法正常输出系统时间 Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants