diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2024-03-12 09:49:28 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2024-03-12 19:03:58 +0100 |
commit | f7c9ede286afa0a60b841a7d9fadf63d20c7059a (patch) | |
tree | 335b544fae2fe653a9a99799d992dca208b89ff5 /CommandLine.c | |
parent | f588b2731518e2a5b163d02cdeb3043c7d6fa92d (diff) |
Print message if config file was resolved
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'CommandLine.c')
-rw-r--r-- | CommandLine.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CommandLine.c b/CommandLine.c index 09e67b85..69b80c1e 100644 --- a/CommandLine.c +++ b/CommandLine.c @@ -411,6 +411,10 @@ int CommandLine_run(int argc, char** argv) { CRT_done(); if (settings->changed) { +#ifndef NDEBUG + if (!String_eq(settings->initialFilename, settings->filename)) + fprintf(stderr, "Configuration %s was resolved to %s\n", settings->initialFilename, settings->filename); +#endif /* NDEBUG */ int r = Settings_write(settings, false); if (r < 0) fprintf(stderr, "Can not save configuration to %s: %s\n", settings->filename, strerror(-r)); |