dump token info to error_log