Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug logs about configurations are sometimes shown and other times not shown. #52

Open
ikngtty opened this issue Dec 6, 2019 · 2 comments

Comments

@ikngtty
Copy link
Member

ikngtty commented Dec 6, 2019

derived from #45

When I run hrafnar and the hrafnar-projects directory doesn't exist, no message appears in console currently.
I think an error message should be shown.

@ikngtty ikngtty self-assigned this Jan 8, 2020
@ikngtty
Copy link
Member Author

ikngtty commented Jan 8, 2020

I've found that this report is wrong!

The message, which is Hrafnar.logSettings, sometimes appears, other times does not and other times only a part of the message appears. (e.g. HRAF_DASHBORAD_PORT does not appear but HRAF_ODIN_HOST appears.)
The cause of this problem is unknown, but I can say now that there is no relation between this problem and the absence of the hrafnar-projects directory!

Additionally, the error message about the directory's absence is shown not when Hrafnar starts to run but when Hrafnar's web API is called. So error handlings are alright.

@ikngtty ikngtty changed the title general error handlings of hrafnar server Debug logs about configurations are sometimes shown and other times not shown. Jan 8, 2020
@ikngtty ikngtty removed their assignment Jan 8, 2020
@kirisaki
Copy link
Contributor

kirisaki commented Jan 9, 2020

Actually, I have an idea to to solve this problem.
The logger consist of two threads, one broadcasts logs toward listeners, one relays logs to the broadcaster. The reason why logs don't appear is probably that logs come faster than the broadcaster started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants