anchor.diff:  				false ->
   				    %% Group leader is dead, so write to the
   				    %% CtLog or unexpected_io log instead
  -				    unexpected_io(Pid,Category,List,State),
  +				    unexpected_io(Pid,Category,Importance,
  +						  List,State),
   				    logger_loop(State)			    
   			    end;
   			{ct_log,_Fd,TCGLs} ->
   			    %% If category is ct_internal then write
   			    %% to ct_log, else write to unexpected_io
   			    %% log
  -			    unexpected_io(Pid,Category,List,State),
  +			    unexpected_io(Pid,Category,Importance,List,State),
   			    logger_loop(State#logger_state{
   					  tc_groupleaders = TCGLs})
   		    end;
  
positive.code: 		end;
  	   true ->
  		fun() ->
  			unexpected_io(FromPid,Category,List,State)
  		end
  	end,
      case State#logger_state.async_print_jobs of
  
negative.code: html_encoding(utf8) ->
      "utf-8".
  
  unexpected_io(Pid,ct_internal,_Importance,List,State) ->
      IoFun = create_io_fun(Pid,State),
      io:format(State#logger_state.ct_log_fd, "~ts",
  	      [lists:foldl(IoFun, [], List)]);
  unexpected_io(Pid,Category,Importance,List,State) ->
      IoFun = create_io_fun(Pid,State),
      Data = io_lib:format("~ts", [lists:foldl(IoFun, [], List)]),
      %% if unexpected io comes in during startup or shutdown, test_server
      %% might not be running - if so (noproc exit), simply print to
      %% stdout instead (will result in double printouts when pal is used)
      try test_server_io:print_unexpected(Data) of
  	_ ->
  	    ok
      catch
  	_:{noproc,_} -> tc_print(Category,Importance,Data,[]);
  	_:Reason     -> exit(Reason)
      end.
  