remove abstracted add_to_log function
check var exists before using
Prevent too much info in add_to_log - enter first 10 and last session into log