Martin Peřina has posted comments on this change.

Change subject: tools: Add runtime log4j setup to engine-config
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/26591/3/backend/manager/tools/src/main/java/org/ovirt/engine/core/config/EngineConfigExecutor.java
File 
backend/manager/tools/src/main/java/org/ovirt/engine/core/config/EngineConfigExecutor.java:

Line 35:                 level = Level.toLevel(levelName, null);
Line 36:                 if (level == null) {
Line 37:                     throw new 
IllegalArgumentException(String.format("Invalid log level value: '%s'", 
levelName));
Line 38:                 }
Line 39:             }
> why can't the above code of level conversion cannot be in the log4jutils? e
I had it there, but you criticized me, that I did command line argument 
validation in that function ...

http://gerrit.ovirt.org/#/c/26588/2/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/log/Log4jUtils.java,cm
Line 40:             Log4jUtils.addFileAppender(fileName, level);
Line 41:         }
Line 42:     }
Line 43:     public static void main(String... args) {


-- 
To view, visit http://gerrit.ovirt.org/26591
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I328a018ef1b714c6a90d1b219dcd326a16bcab2d
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to