Skip to content

Commit

Permalink
Removed Global Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
schnipdip authored Sep 17, 2020
1 parent 4b8a823 commit 6fc6892
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions raisensu.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,6 @@ def export_asset(export, key_object):
print(e)

if __name__ == "__main__":

#make logger accessable everywhere
global logger

#get logger
logger = logging.getLogger(__name__)

Expand Down
4 changes: 0 additions & 4 deletions raisensu_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ def get_sql_statement(config, key_object):
exit(0)

if __name__ == "__main__":
#make logger accessable everywhere
global logger

#get logger
logger = logging.getLogger(__name__)

Expand All @@ -216,7 +213,6 @@ def get_sql_statement(config, key_object):
#add file handler to logger
logger.addHandler(file_handler)


#configparser
config = get_configParser()

Expand Down

0 comments on commit 6fc6892

Please sign in to comment.