Logging string generation fixed