az feedback auto-generates most of the information requested below, as of CLI version 2.31.0
Describe the bug
when redirect command logs with --follow or attach content to a file, i found content duplicate in file, like each second it write all log to file:
az container attach -g mygoup -n mycontainer > file.txt
To Reproduce
create a container instance 'mycontainer' in a group 'mygoup'
execute command
az container attach -g mygoup -n mycontainer > file.txt
you will find duplicate content in file.txt of log
Expected behavior
found in in file the same content as i execute command without redirect to file
Environment summary
Linux mint 20.3
{
"azure-cli": "2.31.0",
"azure-cli-core": "2.31.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"azure-devops": "0.22.0"
}
Additional context
Describe the bug
when redirect command logs with --follow or attach content to a file, i found content duplicate in file, like each second it write all log to file:
To Reproduce
create a container instance 'mycontainer' in a group 'mygoup'
execute command
you will find duplicate content in file.txt of log
Expected behavior
found in in file the same content as i execute command without redirect to file
Environment summary
Linux mint 20.3
Additional context