Check that log_table exists before using it.
Revert "Check that log_table exists before using it."

This reverts commit 18cb876247e2adef9a28f6a7aeea774a7dc87c5e.
Check if log_table exists before using it.