add trace to errorlogger. fix bug with duplicate