attach: non-functional changes
attach: non-functional changes

- improve logging
- simplify functions

Signed-off-by: Christian Brauner <48455ab3070520a2d174545c7239d6d0fabd9a83@ubuntu.com>

GreatFruitOmsk/lxc,hfuCN/lxc,cjwatson/lxc,LynxChaus/lxc,ss1h2a3tw/lxc,GreatFruitOmsk/lxc,hallyn/lxc,ysbnim/lxc,aeris/lxc,cjwatson/lxc,caglar10ur/lxc,hallyn/lxc,hfuCN/lxc,cjwatson/lxc,terceiro/lxc,caglar10ur/lxc,terceiro/lxc,LynxChaus/lxc,hfuCN/lxc,ysbnim/lxc,ysbnim/lxc,federicobriata/lxc,federicobriata/lxc,thmo/lxc,aeris/lxc,thmo/lxc,ss1h2a3tw/lxc,hallyn/lxc,ss1h2a3tw/lxc,federicobriata/lxc,GreatFruitOmsk/lxc,caglar10ur/lxc,thmo/lxc,LynxChaus/lxc,aeris/lxc,terceiro/lxc