changed log emit behavior, removed redundant locking