Fixed incorrect use of timestamp when logging