Fixes add_log being used in an obsolete way

Fixed #2088