Merge 0.7->0.8
[prosody.git] / tests / util / logger.lua
index ce0a23026c894949995bd7554c76eee368a5207f..35facd4e45ae0472e3a9eeb0908920b778f5fade 100644 (file)
@@ -1,3 +1,11 @@
+-- Prosody IM
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
+-- 
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
 local format = string.format;
 local print = print;
 local debug = debug;
@@ -25,7 +33,7 @@ function init(name)
                                        local inf = debug.getinfo(3, 'Snl');
                                        level = level .. ","..tostring(inf.short_src):match("[^/]*$")..":"..inf.currentline;
                                end
-                               if ... then 
+                               if ... then
                                        print(name, getstring(logstyles[level], level), format(message, ...));
                                else
                                        print(name, getstring(logstyles[level], level), message);