move log actions to log.c; fix error in geo edit action