Improve logging: add session_id to log messages