[VOL-2358]open onu adapter log_level command line argument should take log level names not int value

Change-Id: Ice50365b7901be92c6fc08d622f2fe83ec419d08
diff --git a/voltha-adapter-openonu/Chart.yaml b/voltha-adapter-openonu/Chart.yaml
index 03518ed..3da9bdb 100644
--- a/voltha-adapter-openonu/Chart.yaml
+++ b/voltha-adapter-openonu/Chart.yaml
@@ -17,5 +17,5 @@
 description: A Helm chart for Voltha OpenONU Adapter
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 2.2.3
-appVersion: 2.3.2
+version: 2.2.4
+appVersion: 2.3.5
diff --git a/voltha-adapter-openonu/templates/adapters-openonu.yaml b/voltha-adapter-openonu/templates/adapters-openonu.yaml
index c857fbc..6e6010c 100644
--- a/voltha-adapter-openonu/templates/adapters-openonu.yaml
+++ b/voltha-adapter-openonu/templates/adapters-openonu.yaml
@@ -13,6 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+{{- $log_level := tpl .Values.adapter_open_onu.log_level . | upper }}
+
 apiVersion: apps/v1
 kind: Deployment
 metadata:
@@ -65,12 +67,6 @@
           imagePullPolicy: {{ tpl .Values.images.adapter_open_onu.pullPolicy . }}
           args:
             - "/voltha/adapters/brcm_openomci_onu/main.py"
-            {{- if eq (tpl .Values.adapter_open_onu.log_level .) "DEBUG" }}
-            - "--verbose"
-            {{- end }}
-            {{- if eq (tpl .Values.adapter_open_onu.log_level .) "WARN" }}
-            - "--quiet"
-            {{- end }}
             - "--kafka_adapter={{ .Values.services.kafka.adapter.service }}:{{ .Values.services.kafka.adapter.port }}"
             - "--kafka_cluster={{ .Values.services.kafka.cluster.service }}:{{ .Values.services.kafka.cluster.port }}"
             - "--core_topic=rwcore"
@@ -78,6 +74,7 @@
             - "--backend=etcd"
             - "--etcd={{ .Values.services.etcd.service }}:{{ .Values.services.etcd.port }}"
             - "--probe=:8080"
+            - "--log_level={{ $log_level }}"
           readinessProbe:
             httpGet:
               path: /readz
@@ -90,4 +87,4 @@
               port: 8080
             initialDelaySeconds: 10
             periodSeconds: 5
-{{- end }}
\ No newline at end of file
+{{- end }}