class Puma::CommonLogger
def log_hijacking(env, status, header, began_at)
def log_hijacking(env, status, header, began_at) now = Time.now msg = HIJACK_FORMAT % [ env[HTTP_X_FORWARDED_FOR] || env[REMOTE_ADDR] || "-", env[REMOTE_USER] || "-", now.strftime(LOG_TIME_FORMAT), env[REQUEST_METHOD], env[PATH_INFO], env[QUERY_STRING].empty? ? "" : "?#{env[QUERY_STRING]}", env[HTTP_VERSION], now - began_at ] write(msg) end