better warnings
authorSteven Barth <steven@midlink.org>
Sun, 7 Jun 2009 12:09:14 +0000 (12:09 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 7 Jun 2009 12:09:14 +0000 (12:09 +0000)
libs/lucid/luasrc/lucid/tcpserver.lua

index 584da2298bd282aac5dfebae1cb7ddb6c256631a..b1b95c1fb3376308e8500b6568e9f9cecd9a84ab 100644 (file)
@@ -197,7 +197,7 @@ function prepare_tls(tlskey)
                                return nixio.syslog("err", "Unable to load PX5G Keymaster")
                        end
                        
-                       nixio.syslog("info", "PX5G: Generating " .. bits .. "b private key") 
+                       nixio.syslog("warning", "PX5G: Generating private key")
                        local rk = px5g.genkey(bits)
                        local keyfile = nixio.open(key, "w", 600)
                        if not rk or not keyfile or not keyfile:writeall(rk:asn1()) then
@@ -205,7 +205,7 @@ function prepare_tls(tlskey)
                        end
                        keyfile:close()
                        
-                       nixio.syslog("info", "PX5G: Generating self-signed certificate")
+                       nixio.syslog("warning", "PX5G: Generating self-signed certificate")
                        if not fs.writefile(cert, rk:create_selfsigned(data,
                                        os.time(), os.time() + 3600 * 24 * 366 * 15)) then
                                return nixio.syslog("err", "Unable to generate certificate")