ossarga commented on code in PR #121:
URL: https://github.com/apache/cassandra-website/pull/121#discussion_r841307849


##########
site-content/docker-entrypoint.sh:
##########
@@ -241,10 +314,41 @@ run_preview_mode() {
 }
 
 
+log_level_str_to_int() {
+  local log_level_int
+  case $1 in
+    "OFF")
+      log_level_int=0
+    ;;
+    "ERROR")
+      log_level_int=1
+    ;;
+    "WARN")
+      log_level_int=2
+    ;;
+    "INFO")
+      log_level_int=3
+    ;;
+    "DEBUG"|"*")
+      log_level_int=4
+    ;;
+  esac
+  echo ${log_level_int}
+}
+
+
+log_message() {
+  if [ ${LOG_LEVEL_INT} -ne 0  ] && [ $(log_level_str_to_int $1) -le 
${LOG_LEVEL_INT} ]
+  then
+    echo "container: $1: $2"
+  fi
+}

Review Comment:
   Great suggestion! They will make an appearance in my next Pull Request.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to