Skip to content

Commit 2ffe15c

Browse files
committedNov 13, 2020
read_config: add debugging output
1 parent 7748f65 commit 2ffe15c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎src/main/c/config.c

+8-2
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,19 @@ void read_config(struct string *jvm_options)
188188
const char *path = ij_path("ImageJ.cfg");
189189

190190
if (file_exists(path)) {
191+
debug("read_config: reading ImageJ.cfg");
191192
read_file_as_string(path, jvm_options);
192-
if (is_modern_config(jvm_options->buffer))
193+
if (is_modern_config(jvm_options->buffer)) {
194+
debug("read_config: detected modern config");
193195
parse_modern_config(jvm_options);
194-
else
196+
}
197+
else {
198+
debug("read_config: detected legacy config");
195199
parse_legacy_config(jvm_options);
200+
}
196201
}
197202
else {
203+
debug("read_config: checking jvm.cfg");
198204
path = ij_path("jvm.cfg");
199205
if (file_exists(path))
200206
read_file_as_string(path, jvm_options);

0 commit comments

Comments
 (0)
Please sign in to comment.