Moving the code in slacker.py to slacker.main module which simplifies slacker.py as well as improves the logging from main. Now we get the module path:
e.g.
2018-02-03 16:17:13,848 - Config - INFO - Loaded config from: /Users/bdavis/.slacker
2018-02-03 16:17:13,851 - slacker.main - DEBUG - Verbose mode setting debug session log level.
2018-02-03 16:17:14,671 - HelpCommand - INFO - Displaying available commands:
2018-02-03 16:17:19,632 - slacker.utility - INFO - Caught sig.. 2
2018-02-03 16:21:27,763 - Config - INFO - Loaded config from: /Users/bdavis/.slacker
2018-02-03 16:21:27,769 - slacker.main - DEBUG - Verbose mode setting debug session log level.
2018-02-03 16:21:27,769 - ApiTestCommand - DEBUG - Checking Slack...
2018-02-03 16:21:28,051 - ApiTestCommand - INFO - API is online.
2018-02-03 16:21:28,052 - AuthTestCommand - DEBUG - Checking auth for
2018-02-03 16:21:28,272 - AuthTestCommand - INFO - Auth successful!
2018-02-03 16:21:28,273 - AuthTestCommand - INFO - URL:
2018-02-03 16:21:28,273 - AuthTestCommand - INFO - Workspace
2018-02-03 16:21:28,273 - AuthTestCommand - INFO - Workspace ID:
2018-02-03 16:21:28,273 - AuthTestCommand - INFO - User: slacker
2018-02-03 16:21:28,273 - AuthTestCommand - INFO - User ID
2018-02-03 16:21:36,629 - HelpCommand - INFO - Displaying available commands:
2018-02-03 16:21:38,350 - slacker.utility - INFO - Caught sig.. 2
Moving the code in
slacker.py
toslacker.main
module which simplifiesslacker.py
as well as improves the logging from main. Now we get the module path:e.g.