add log when executing statement