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

print hostname:port in server log files #12

Closed
cattoni opened this issue Jul 29, 2015 · 5 comments
Closed

print hostname:port in server log files #12

cattoni opened this issue Jul 29, 2015 · 5 comments
Assignees
Labels

Comments

@cattoni
Copy link
Contributor

cattoni commented Jul 29, 2015

It would be useful to have in server log files (e.g. context-analyzer.err) not only the port but also the hostname -- such as "hostname:port".
Currently in a distributed environment a client with only the port misses the hostname to connect to a server.
(by the way the current string contains a typo "Staring server" instead of "Starting server")

@davidecaroselli
Copy link
Member

The context analyzer itself cannot know the hostname of the machine it is in; that's because, in general, a machine can have more than an hostname (and even more than one IP).

@cattoni
Copy link
Contributor Author

cattoni commented Jul 30, 2015

Could it be the output of the command "hostname" or "uname -n"?

@cattoni
Copy link
Contributor Author

cattoni commented Jul 30, 2015

Is it possible to have the output of the command "hostname" or "uname -n"?

1 similar comment
@cattoni
Copy link
Contributor Author

cattoni commented Jul 30, 2015

Is it possible to have the output of the command "hostname" or "uname -n"?

@davidecaroselli
Copy link
Member

That's the name of the machine, but rarely it's the public domain name. I think that the information you're looking for should be printed by the Moses Decoder at the beginning of the log. Actually the Moses Decoder is the right component to tell you which Context Analyzer server he's using.

This property is also currently available in the moses.ini file (key bias-server).

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

No branches or pull requests

2 participants