Skip to content

Commit

Permalink
Merge pull request #252 from iwehf/main
Browse files Browse the repository at this point in the history
change log message
  • Loading branch information
iwehf authored Jun 4, 2024
2 parents 343ad11 + 7c2a9c6 commit db415a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def app_state_changed(reason):

if system_name == "Darwin":
resdir = os.path.join(os.path.dirname(app_path), "Resources")
config_file_path = os.path.join(resdir, "config", "config.yml")
config_file_path = os.path.abspath(os.path.join(resdir, "config", "config.yml"))
os.environ["CRYNUX_SERVER_CONFIG"] = config_file_path

_logger.debug(f"Config file path on mac: {config_file_path}")
Expand All @@ -326,7 +326,7 @@ def app_state_changed(reason):
crynux_config.dump_config(cfg)

elif system_name == "Windows":
config_file_path = os.path.join("config", "config.yml")
config_file_path = os.path.abspath(os.path.join("config", "config.yml"))
os.environ["CRYNUX_SERVER_CONFIG"] = config_file_path

_logger.debug(f"Config file path on windows: {config_file_path}")
Expand All @@ -339,7 +339,7 @@ def app_state_changed(reason):
index = __file__.rfind(os.path.sep + "src")
root_dir = __file__[:index]

config_file_path = os.path.join(root_dir, "config", "config.yml")
config_file_path = os.path.abspath(os.path.join(root_dir, "config", "config.yml"))
os.environ["CRYNUX_SERVER_CONFIG"] = config_file_path

_logger.debug(f"Config file path from source: {config_file_path}")
Expand Down
2 changes: 1 addition & 1 deletion src/crynux_server/node_manager/node_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ async def _request_tokens(self):
with fail_after(5, shield=True):
await self.state_cache.set_node_state(
status=models.NodeStatus.Error,
message="Node manager init error: cannot request token from faucet. Retrying",
message="Node manager init error: cannot request token from faucet. Retrying...",
)
raise

Expand Down

0 comments on commit db415a9

Please sign in to comment.