bugfix: error information when logging too long