diff options
Diffstat (limited to 'miss_htbt_service/mod/trapd_io.py')
-rw-r--r-- | miss_htbt_service/mod/trapd_io.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/miss_htbt_service/mod/trapd_io.py b/miss_htbt_service/mod/trapd_io.py index d60f060..3e03999 100644 --- a/miss_htbt_service/mod/trapd_io.py +++ b/miss_htbt_service/mod/trapd_io.py @@ -1,9 +1,7 @@ # ============LICENSE_START=======================================================) -# org.onap.dcae -# ================================================================================ -# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2018-2021 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. -# Copyright 2020 Deutsche Telekom. All rights reserved. +# Copyright (c) 2020 Deutsche Telekom. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,7 +19,7 @@ """ """ -__docformat__ = 'restructuredtext' +__docformat__ = "restructuredtext" # basics import datetime @@ -36,6 +34,7 @@ import string import time import traceback import unicodedata + # dcae_snmptrap import mod.trapd_settings as tds from mod.trapd_exit import cleanup_and_exit @@ -48,7 +47,7 @@ prog_name = os.path.basename(__file__) # # # # # # # # # # ## # # # # # # # -#def roll_all_logs(): +# def roll_all_logs(): # """ # roll all active logs to timestamped version, open new one # based on frequency defined in files.roll_frequency @@ -107,7 +106,7 @@ prog_name = os.path.basename(__file__) # # # # # # # # # # ## # # # # # # # -#def open_eelf_logs(): +# def open_eelf_logs(): # """ # open various (multiple ???) logs # """ @@ -159,7 +158,7 @@ prog_name = os.path.basename(__file__) # # # # # # # # # # ## # # # # # # # -#def roll_file(_loc_file_name): +# def roll_file(_loc_file_name): # """ # move active file to timestamped archive # """ @@ -190,7 +189,7 @@ prog_name = os.path.basename(__file__) ## # # # # # # # # # # # # # # -#def open_file(_loc_file_name): +# def open_file(_loc_file_name): # """ # open _loc_file_name, return file handle # """ @@ -214,7 +213,7 @@ prog_name = os.path.basename(__file__) # """ # # -#def close_file(_loc_fd, _loc_filename): +# def close_file(_loc_fd, _loc_filename): # # try: # @@ -231,7 +230,7 @@ prog_name = os.path.basename(__file__) ## is released for python via LOG-161 ## # # # # # # # # # ## # # # # # # # # -#def ecomp_logger(_log_type, _sev, _error_code, _msg): +# def ecomp_logger(_log_type, _sev, _error_code, _msg): # """ # Log to ecomp-style logfiles. Logs include: # @@ -389,4 +388,4 @@ def stdout_logger(_msg): t_out = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S,%f")[:-3] - print('%s %s' % (t_out, _msg)) + print("%s %s" % (t_out, _msg)) |