#!/usr/bin/python3

# Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.

import os
import subprocess

LOG_FILE="/var/log/raid_config_log.txt"

def log_debug_msg(self, msg):

    file = open(LOG_FILE, "a+")
    file.write(msg + "\n")
    file.close()

def dump_file(self, filename):
    self.log_debug("Dumping " + filename)
    file = open(filename, "r")
    for each in file:
        self.log_debug_msg(each)
