Fixed logs crash when source name length is too long.