diff options
author | Steven Schubiger <stsc@refcnt.org> | 2020-12-30 22:02:35 +0100 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2020-12-30 22:02:35 +0100 |
commit | 6c3684cc6d44ccc8bf2ab583abca40fb6c5ce1b3 (patch) | |
tree | ba112d10b372fba8caa7991bc53e2e49169bfe8d | |
parent | 1726f536e36e0eeef71b56390402f0b060387fa4 (diff) | |
download | colorize-6c3684cc6d44ccc8bf2ab583abca40fb6c5ce1b3.tar.gz colorize-6c3684cc6d44ccc8bf2ab583abca40fb6c5ce1b3.tar.bz2 |
main(): postpone invoking STACK_FILE(log)
-rw-r--r-- | colorize.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -383,8 +383,12 @@ main (int argc, char **argv) #if DEBUG log = open_file (DEBUG_FILE, "w"); - STACK_FILE (log); print_tstamp (log); + /* We're in debugging mode, hence we can't invoke STACK_FILE() + prior to print_tstamp(), because both cause text to be written + to the same logfile which is expected to have the timestamp + first. */ + STACK_FILE (log); #endif attr[0] = '\0'; |