Commit 9dc087680508dc5bffda6c72ff9bf57fbee843a2
1 parent
b17c9e88
Exists in
master
and in
2 other branches
Fixing trace file.
Showing
1 changed file
with
1 additions
and
14 deletions
Show diff stats
src/core/trace_ds.c
| ... | ... | @@ -84,21 +84,8 @@ static void write_trace(const H3270 *session, const char *fmt, va_list args) { |
| 84 | 84 | FILE *f = fopen(session->trace.file, "a"); |
| 85 | 85 | |
| 86 | 86 | if(f) { |
| 87 | - | |
| 88 | - time_t ltime = time(0); | |
| 89 | - | |
| 90 | - char timestamp[80]; | |
| 91 | -#ifdef HAVE_LOCALTIME_R | |
| 92 | - struct tm tm; | |
| 93 | - strftime(timestamp, 79, "%x %X", localtime_r(<ime,&tm)); | |
| 94 | -#else | |
| 95 | - strftime(timestamp, 79, "%x %X", localtime(<ime)); | |
| 96 | -#endif // HAVE_LOCALTIME_R | |
| 97 | - | |
| 98 | - fprintf(f,"%s %s\n",timestamp,message); | |
| 99 | - | |
| 87 | + fprintf(f,"%s",message); | |
| 100 | 88 | fclose(f); |
| 101 | - | |
| 102 | 89 | } |
| 103 | 90 | |
| 104 | 91 | } | ... | ... |