-use logger instean printstack