tweak rails log clear function