Fixed logging in MainActivity

#4