misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-25 13:21:08 +02:00
parent 8b00e0ae10
commit 2c9f54567f
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,6 @@ if __name__ == '__main__':
config = utils.load_config(args)
utils.setup_logging(args, config)
logging.debug("effective configuration:\n\n%s\n\n" % yaml.dump(config, default_flow_style=False))
pwnagotchi.set_name(config['main']['name'])
plugins.load(config)
@ -47,6 +45,8 @@ if __name__ == '__main__':
logging.info("%s@%s (v%s)" % (pwnagotchi.name(), agent.fingerprint(), pwnagotchi.version))
logging.debug("effective configuration:\n\n%s\n\n" % yaml.dump(config, default_flow_style=False))
for _, plugin in plugins.loaded.items():
logging.debug("plugin '%s' v%s loaded from %s" % (plugin.__name__, plugin.__version__, plugin.__file__))

View File

@ -43,7 +43,7 @@ def load(config, agent, epoch, from_disk=True):
start = time.time()
a2c = A2C(MlpLstmPolicy, env, **config['params'])
logging.debug("[ai] A2C crated in %.2fs" % (time.time() - start))
logging.debug("[ai] A2C created in %.2fs" % (time.time() - start))
if from_disk and os.path.exists(config['path']):
logging.info("[ai] loading %s ..." % config['path'])