Fix a bug in the logging system that was unnoticed because of the large array size.