Skip to content
Snippets Groups Projects
Commit a2c39b29 authored by cmaeder's avatar cmaeder
Browse files

renamed variables

parent 9f9f26bc
Branches
No related tags found
No related merge requests found
......@@ -40,9 +40,9 @@ class ParseXML(db: PopulateDB) {
def procErr(f: File, x: Node): Unit = {
val elems = x.child filter (c => c.isInstanceOf[Elem])
val List(t, smsg, level) = getAttrs(List("type", "shortMsg", "level"), x)
val List(errType, shortMsg, level) = getAttrs(List("type", "shortMsg", "level"), x)
def infoMessage(msg: String) =
log.info(msg + "\nFile: " + f + "\nNode: " + smsg)
log.info(msg + "\nFile: " + f + "\nNode: " + shortMsg)
var lvl: Int = 0
if (level.isEmpty) infoMessage("empty error level")
else
......@@ -52,7 +52,7 @@ class ParseXML(db: PopulateDB) {
case e: NumberFormatException => infoMessage(e.getMessage)
}
// see Table.columns for the proper argument order
val vs = List(f.getPath, t, smsg, level, x.text)
val vs = List(f.getPath, errType, shortMsg, level, x.text)
assert(vs.length == Table.columns.length)
db.insertRow(vs)
if (elems.nonEmpty)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment