opengrok icon indicating copy to clipboard operation
opengrok copied to clipboard

indexer directory log messages should state the directory more clearly

Open vladak opened this issue 4 years ago • 2 comments

When indexing in project less configuration (in Docker) I noticed these log entries:

opengrok-dev | INFO: Starting traversal of directory
...
opengrok-dev | INFO: Starting indexing of directory

In a setup with projects enabled this looks like this:

opengrok-dev | INFO: Starting traversal of directory /foo
...
opengrok-dev | INFO: Starting indexing of directory /foo

The directory in the log message is determined to be relative to the source root. In case of project less setup this becomes empty. Either the message in project less setup should be adjusted to say something like ... directory '/' or ... source root directory.

Also, the directory should be perhaps enclosed in single quotes.

vladak avatar Mar 10 '21 07:03 vladak

@vladak can you please elaborate on what do you mean by project less setup and how to replicate it. Thanks

sushant3kumar avatar Jul 13 '21 18:07 sushant3kumar

@vladak can you please elaborate on what do you mean by project less setup and how to replicate it. Thanks

means projects are disabled. This is what happens by default if you run the indexer without the -P option.

vladak avatar Jul 14 '21 07:07 vladak

@vladak Can you please assign this issue to me ? i would like to work on it.

Souvik-223 avatar Apr 05 '23 14:04 Souvik-223

This is addressed in the code by various changes, hence closing.

vladak avatar Apr 17 '23 12:04 vladak