if you want to train while sick dont workout at the same intensity as if you are not sick or you will put your body under too much pressure to recover from your virus plus muscle recovery
my experience has been in more than once, when i worked out legs while ignoring i was sick i got worst and had to stop training, basically your body is letting you know something is not well, listen to your body in these cases, get well then resume training at the same intensity.