diff --git a/bin/pwnagotchi b/bin/pwnagotchi index 1d48137..9405fe8 100755 --- a/bin/pwnagotchi +++ b/bin/pwnagotchi @@ -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__)) diff --git a/pwnagotchi/ai/__init__.py b/pwnagotchi/ai/__init__.py index d2cf186..73ca4fc 100644 --- a/pwnagotchi/ai/__init__.py +++ b/pwnagotchi/ai/__init__.py @@ -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'])