mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-18 22:06:01 +00:00
Just use stdout if we never opened a log file
This commit is contained in:
parent
14f2dcae1a
commit
b1c2a2109e
@ -62,10 +62,8 @@ log_write(int level, const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
// Oh. Well, we can't write something if we have no log stream,
|
|
||||||
// right?
|
|
||||||
if (log_stream == NULL) {
|
if (log_stream == NULL) {
|
||||||
return;
|
log_stream = stdout;
|
||||||
}
|
}
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user