Using 2n2222 to switch relay on/off with 3.3v

For quick and dirty testing or circuits I use 10%. For production I would have to know much more about the device.