It appears you're working from a water solution, and not fused salts. So you can forget about sodium being produced. There are two reasons for that, one should be obvious, and the other requires some knowledge of electrochemistry. As to the identity of the gas, you can test for some likely suspects, if you collect a test tube full. And you can look up those. If you understand electrochemistry, you can try to write out red-ox half reactions to determine what the gases are.