]> git.e2factory.org Git - e2factory.git/commitdiff
move less interesting messages to log level 4
authorTobias Ulmer <tu@emlix.com>
Tue, 7 Mar 2017 16:00:27 +0000 (17:00 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 7 Mar 2017 16:00:27 +0000 (17:00 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua
generic/e2option.lua
generic/tools.lua
local/e2build.lua
local/e2tool.lua
local/licence.lua
local/projenv.lua
local/result.lua

index 89e30fc576ea4042e4580429ed27f0ba0be52ad0..ebfc703b667c0e55d1e4cb7fd57dd05801e7e3f5 100644 (file)
@@ -471,7 +471,7 @@ function e2lib.init2()
     -- handle E2_SSH environment setting
     ssh = e2lib.globals.osenv["E2_SSH"]
     if ssh then
-        e2lib.logf(3, "using E2_SSH environment variable: %s", ssh)
+        e2lib.logf(4, "using E2_SSH environment variable: %s", ssh)
         rc, re = tools.set_tool("ssh", ssh)
         if not rc then
             return false, e:cat(re)
@@ -982,7 +982,7 @@ function e2lib.get_global_config()
         e2lib.logf(4, "reading global config file: %s", path)
         local rc = e2lib.exists(path)
         if rc then
-            e2lib.logf(3, "using global config file: %s", path)
+            e2lib.logf(4, "using global config file: %s", path)
             rc, re = e2lib.dofile2(path,
                 { config = function(x) data = x end })
             if not rc then
@@ -1024,7 +1024,7 @@ function e2lib.read_extension_config(root)
         return {}
     end
 
-    e2lib.logf(3, "reading extension file: %s", extension_config)
+    e2lib.logf(4, "reading extension file: %s", extension_config)
 
     local data = nil
     rc, re = e2lib.dofile2(extension_config,
@@ -1424,7 +1424,7 @@ function e2lib.callcmd(argv, fdctv, workdir, envdict, nowait)
     local rc, re, pid
     local sync_pipes = {}
 
-    e2lib.logf(3, "calling %q in %q", table.concat(argv, " "),
+    e2lib.logf(4, "calling %q in %q", table.concat(argv, " "),
         workdir or "$PWD")
 
     rc, re = fd_parent_setup(fdctv)
@@ -1496,13 +1496,13 @@ function e2lib.callcmd(argv, fdctv, workdir, envdict, nowait)
         return pid
     end
 
-    e2lib.logf(3, "waiting for %q", table.concat(argv, " "))
+    e2lib.logf(4, "waiting for %q", table.concat(argv, " "))
     rc, re = e2lib.wait(pid)
     if not rc then
         return false, re
     end
 
-    e2lib.logf(3, "command %q exit with return code %d",
+    e2lib.logf(4, "command %q exit with return code %d",
         table.concat(argv, " "), rc)
 
     return rc
@@ -1818,7 +1818,7 @@ function e2lib.parse_e2versionfile(filename)
             l, filename)
     end
 
-    e2lib.logf(3, "using e2 branch %s tag %s",
+    e2lib.logf(4, "using e2 branch %s tag %s",
         version_table.branch, version_table.tag)
 
     return strict.lock(version_table)
index 71e101226ace0f337585a290eeda230bba892e7c..0d3ed49730960e362fd97e434945b07e893b2a57 100644 (file)
@@ -399,7 +399,7 @@ function e2option.parse(args)
     for k,v in ipairs(vals) do
         table.insert(t, string.format("[%d]=%q", k, v))
     end
-    e2lib.logf(3, "e2option.parse(): %s", table.concat(t, ", "))
+    e2lib.logf(4, "e2option.parse(): %s", table.concat(t, ", "))
 
     if opts["Wdefault"] or opts["Wall"] then
         e2lib.globals.warn_category.WDEFAULT = true
index 26b70c55f85c5d9adb432262858f6d1b244fb5ab..830cc2fb6da530868098b26677ec3f1e3b781ae2 100644 (file)
@@ -200,7 +200,7 @@ function tools.set_tool(name, value, flags)
     if type(flags) == "string" then
         toollist[name].flags = flags
     end
-    e2lib.logf(3, "setting tool: %s=%s flags=%s", name, toollist[name].name,
+    e2lib.logf(4, "setting tool: %s=%s flags=%s", name, toollist[name].name,
         toollist[name].flags)
     return true
 end
@@ -231,7 +231,7 @@ function tools.add_tool(name, value, flags, optional)
     }
 
     local t = toollist[name]
-    e2lib.logf(3, "adding tool: %s=%s flags=%s optional=%s", name, t.name,
+    e2lib.logf(4, "adding tool: %s=%s flags=%s optional=%s", name, t.name,
         t.flags, tostring(t.optional))
 
     return true
index 685639509ff836dd0121f1ce570d6969eaf98502..bfc3fe8161d57faac5513724d63bff785aac3107 100644 (file)
@@ -716,7 +716,6 @@ end
 function e2build.build_process_class:_fix_permissions(res, return_flags)
     local rc, re, bc
     local e = err.new("fixing permissions failed")
-    e2lib.log(3, "fix permissions")
 
     e2tool.set_umask()
     bc = res:build_config()
index 225c3ec0b9103889eaa3fdbfa6625240c8a1f4cd..5259b1e29de42eb615ec66cbe537ee0fbe9314c3 100644 (file)
@@ -1332,7 +1332,7 @@ function e2tool.print_selection(resultvec)
         local f = settings:force_rebuild() and "[force rebuild]" or ""
         local p = settings:prep_playground() and "[playground]" or ""
 
-        e2lib.logf(3, "Selected result: %-20s %s %s %s", resultname, s, f, p)
+        e2lib.logf(4, "Selected result: %-20s %s %s %s", resultname, s, f, p)
     end
     return true
 end
index 43b87496e8c053be7a6b2a00a17c09992021e55c..53fc01b2d8bf6f5258fd6b47ecc2f97fb0857dbe 100644 (file)
@@ -124,7 +124,7 @@ function licence.load_licence_config()
 
     path = e2lib.join(e2tool.root(), "proj/licences")
 
-    e2lib.logf(3, "loading licence config %q", path)
+    e2lib.logf(4, "loading licence config %q", path)
     e = err.new("loading licence config %q failed", path)
 
     ltable = nil
index de51d5b6e1354759b43bc860ceebb3f467921956..9874537b17bb96664f71eeba5136234ac26670c6 100644 (file)
@@ -70,7 +70,7 @@ function projenv.safe_global_res_env_table()
 end
 
 local function _load_env_config(file)
-    e2lib.logf(3, "loading environment: %s", file)
+    e2lib.logf(4, "loading environment: %s", file)
     local e = err.new("loading environment: %s", file)
     local rc, re
     local merge_error = false
@@ -101,7 +101,7 @@ local function _load_env_config(file)
 
                 if type(value) == "string" then
 
-                    e2lib.logf(3, "global env: %-15s = %-15s", key, value)
+                    e2lib.logf(4, "global env: %-15s = %-15s", key, value)
                     projenv.get_global_env():set(key, value)
 
                 else
@@ -115,7 +115,7 @@ local function _load_env_config(file)
                             return
                         end
 
-                        e2lib.logf(3, "result env: %-15s = %-15s [%s]", key1, value1, key)
+                        e2lib.logf(4, "result env: %-15s = %-15s [%s]", key1, value1, key)
 
                         projenv.get_result_env(key):set(key1, value1)
                     end
index 93034d1c944de121ae3b7cebf9260690ad0c52fe..d0ee4450b54a968b94e7b74ea01642694e60fa0c 100644 (file)
@@ -775,7 +775,7 @@ function result.instantiate_object(rawres)
             rawres.type, rawres.name)
     end
 
-    e2lib.logf(3, "instantiating %s of type %s", rawres.name, rawres.type)
+    e2lib.logf(4, "instantiating %s of type %s", rawres.name, rawres.type)
 
     theclass = result_types[rawres.type]
     assertIsTable(theclass)