have error logging initially enabled

This commit is contained in:
2019-08-21 14:29:09 +02:00
parent d1b6c8bf1a
commit cfbc4ac369
3 changed files with 3 additions and 4 deletions

View File

@ -128,7 +128,6 @@ Longer code segments are often set in a box.
<li>Run @init more often (e.g. when device re-connects or paused IOC is resumed). <li>Run @init more often (e.g. when device re-connects or paused IOC is resumed).
<li>Use "COMM" error code in .STAT when device is disconnected. <li>Use "COMM" error code in .STAT when device is disconnected.
<li>Allow spaces in protocol parameter list. <li>Allow spaces in protocol parameter list.
<li>Errors are new silent by default (var streamError 0) except during init.
<li>Support output redirect of all shell functions. <li>Support output redirect of all shell functions.
<li>Fix building shared libraries on Windows. <li>Fix building shared libraries on Windows.
<li>Fix some C++11 warnings. <li>Fix some C++11 warnings.

View File

@ -382,10 +382,10 @@ See the <a href="protocol.html">next chapter</a> for protocol files in depth.
<p> <p>
Generation of debug and error messages is controlled with two shell variables, Generation of debug and error messages is controlled with two shell variables,
<code>streamDebug</code> and <code>streamError</code>. <code>streamDebug</code> and <code>streamError</code>.
Per default no debug messages are printed and error messages are only printed
while loading protocol files.
Setting those variables to 1 (actually to any number but 0) enables the Setting those variables to 1 (actually to any number but 0) enables the
messages. messages.
Per default debug messages are switched off and error messages are switched on.
Errors occuring while loading protocol files are always shown.
</p> </p>
<p> <p>
Warning: Enabling debug messages can create a lot of output! Warning: Enabling debug messages can create a lot of output!

View File

@ -26,7 +26,7 @@
#include <stdio.h> #include <stdio.h>
int streamDebug = 0; int streamDebug = 0;
int streamError = 0; int streamError = 1;
extern "C" { extern "C" {
#ifdef _WIN32 #ifdef _WIN32
__declspec(dllexport) __declspec(dllexport)