Added log level enabled check before debug string creation. Changed some error logs from debug to warning.