Treason is a VERY tough charge to prosecute.
I believe you still need two eye witnesses to the act. Unless there other soldiers there to testify, he won’t get convicted of treason. Desertion, sure. But not the big one.