Cleaned up clientlogging.c