Mercurial > hg
comparison mcabber/src/utils.c @ 1617:9ca672ee884f
Fix previous commit :)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Oct 2009 22:47:12 +0200 |
parents | f9bf561e54d0 |
children | d9913c1b35e7 |
comparison
equal
deleted
inserted
replaced
1616:4c7104ec5f3b | 1617:9ca672ee884f |
---|---|
197 | 197 |
198 void ut_WriteLog(unsigned int flag, const char *data) | 198 void ut_WriteLog(unsigned int flag, const char *data) |
199 { | 199 { |
200 if (!DebugEnabled || !FName) return; | 200 if (!DebugEnabled || !FName) return; |
201 | 201 |
202 if (((DebugEnabled == 2) && (flag & (LPRINT_LOG|LPRINT_DEBUG))) || | 202 if (((DebugEnabled >= 2) && (flag & (LPRINT_LOG|LPRINT_DEBUG))) || |
203 ((DebugEnabled == 1) && (flag & LPRINT_LOG))) { | 203 ((DebugEnabled == 1) && (flag & LPRINT_LOG))) { |
204 FILE *fp = fopen(FName, "a+"); | 204 FILE *fp = fopen(FName, "a+"); |
205 if (!fp) { | 205 if (!fp) { |
206 scr_LogPrint(LPRINT_NORMAL, "ERROR: Cannot open tracelog file"); | 206 scr_LogPrint(LPRINT_NORMAL, "ERROR: Cannot open tracelog file"); |
207 return; | 207 return; |