MAS issueshttps://git.rwth-aachen.de/groups/acs/public/cloud/mas/-/issues2021-08-18T15:32:29+02:00https://git.rwth-aachen.de/acs/public/cloud/mas/clonemapy/-/issues/5Don't call logging.basicConfig2021-08-18T15:32:29+02:00Fabian WüllhorstDon't call logging.basicConfigIn the agency you call the basicConfig of the logging module:
This does not include the names of the modules.
Can we either update the name using `'%(asctime)s - %(name) - [%(levelname)s] - %(message)s'` or don't call the basicConfig i...In the agency you call the basicConfig of the logging module:
This does not include the names of the modules.
Can we either update the name using `'%(asctime)s - %(name) - [%(levelname)s] - %(message)s'` or don't call the basicConfig in here and set it in the agentlib instead?
```python
try:
log_type = os.environ['CLONEMAP_LOG_LEVEL']
if log_type == "info":
logging.basicConfig(format='%(asctime)s - [%(levelname)s] - %(message)s',
level=logging.INFO)
else:
logging.basicConfig(format='%(asctime)s - [%(levelname)s] - %(message)s',
level=logging.ERROR)
except KeyError:
logging.basicConfig(format='%(asctime)s - [%(levelname)s] - %(message)s',
level=logging.ERROR)
```