diff --git a/README.md b/README.md index 1fd5765..a70635d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ network. + ### Internet shutdown -You can communicate with neighbouring devices running naxalnet, -using services like [IPFS][], [Jami][], [Secure Scuttlebutt][ssb] -and others which can work on an intranet. -They should be installed on your machine _before_ your friendly -democratic government announces an [internet shutdown][], since you -cannot download and install them during a shutdown. -When a shutdown occurs, [enable naxalnet][enablenx] +You can communicate with neighbouring devices running naxalnet, using +services like [IPFS][], [Jami][], [Secure Scuttlebutt][ssb] and others +which can work on an intranet. They should be installed on your +machine _before_ your friendly democratic government announces an +[internet shutdown][], since you cannot download and install them +during a shutdown. When a shutdown occurs, [enable naxalnet][enablenx]. ## Uninstalling @@ -273,10 +280,16 @@ See [HACKING.md](HACKING.md) ## Similar projects -The following projects are similar to naxalnet, but are not designed -to be used in a machine with WiFi adapter. If you live in -an area where the materials required for any of them are easily -available, consider using them instead of naxalnet. +Many projects make setting up B.A.T.M.A.N. Advanced mesh networks with +WiFi routers easier. They are easier to setup and are more +configurable. But naxalnet is different from them. It simplifies +setting up mesh networks with _laptops or computers_, and is not +designed to work with routers. + +The following projects does something similar to naxalnet, but +requires special devices or routers to work. If you live in an area +where the materials required for any of them are easily available, +consider using them instead of naxalnet. - [LibreMesh][]: framework for OpenWrt-based firmwares - [disaster.radio][]: solar-powered communications network diff --git a/naxalnet/config.py b/naxalnet/config.py index 69991ec..38a7a16 100644 --- a/naxalnet/config.py +++ b/naxalnet/config.py @@ -46,6 +46,7 @@ from pathlib import Path from configparser import ConfigParser from argparse import ArgumentParser, Namespace from naxalnet.default import CONFIG, CONFIG_FILES, CONFIG_DIRS +from naxalnet.log import logger def get_config_files(): @@ -54,6 +55,7 @@ def get_config_files(): of files that exists as pathlib.Path objects """ config_files = [] + for directory in CONFIG_DIRS: path = Path(directory) if path.exists(): @@ -68,12 +70,14 @@ def parse_config(): Parse all configuration files, with the values in default.py as fallback """ + logger.debug("Parsing config files") parser = ConfigParser() # encoded defaults parser.read_dict(CONFIG) # read config files files = get_config_files() for i in files: + logger.debug("Reading config file %s", str(i)) parser.read_file(i.open()) return parser @@ -141,4 +145,5 @@ def parse_args() -> Namespace: help="prints the version and exit", ) + logger.debug("Parsing arguments") return parser.parse_args()