Diff

plugins/mod_s2s/mod_s2s.lua @ 7277:7be7108cb6ed

mod_s2s: Include name of remote server when it's missing the stream ID (thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Mon, 14 Mar 2016 13:27:02 +0100
parent 7101:f83211f4d776
child 7278:1891854b25ac
child 7449:6943b1dd4e3d
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Sun Mar 13 18:35:00 2016 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Mon Mar 14 13:27:02 2016 +0100
@@ -363,7 +363,7 @@
 	elseif session.direction == "outgoing" then
 		session.notopen = nil;
 		if not attr.id then
-			log("error", "Stream response did not give us a stream id!");
+			log("error", "Stream response from %s did not give us a stream id!", session.to_host);
 			session:close({ condition = "undefined-condition", text = "Missing stream ID" });
 			return;
 		end