Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rc5452bef60ff6c8703bec2675bf726132a79e5dd -r517be87a624e12b2529479481a5cc2825e0827ec --- shared/scripts/configuration/utility.py (.../utility.py) (revision c5452bef60ff6c8703bec2675bf726132a79e5dd) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 517be87a624e12b2529479481a5cc2825e0827ec) @@ -152,9 +152,6 @@ """ This function is the handler for getting file from log folder. - This handler will go inside log folder and looks for newly added log based on current time. - if it satisfied that condition, it will return the exact path of newly created log. - Application log file is automatically created on '/home/denali/Desktop/sd-card/log/ {current_date}_denaliSquish.log' @return latest_file - (string) returns latest file that append on log folder from sd-data @@ -165,6 +162,21 @@ return latest_file except: return False + +def get_extracted_error_file(): + """ + This function is the handler for getting error file from service folder. + + Application log file is automatically created on '/home/denali/Desktop/sd-card/service/ {current_date}_denaliSquish.err ' + + @return latest_file - (string) returns latest file that append on log folder from service + """ + try: + current_date = get_current_date_and_time(date_format = "%Y_%m_%d") + latest_file = '/home/denali/Desktop/sd-card/service/'+current_date+'_denaliSquish.err' + return latest_file + except: + return False def get_message_from_log(file_name, message_text): @@ -242,7 +254,6 @@ first_two_char = string_format_id[2:4] last_two_char = string_format_id[4:6] if last_two_char != '00' and len(string_format_id) != 5: - test.log(str(('0x'+last_two_char+first_two_char))) return row[3], row[4], ('0x'+last_two_char+first_two_char) else: return row[3], row[4], string_format_id.replace("00", "")