The console log is not the same as the wrapper log.
Here is a small example of using a logger.
This:
if tag.dataType == Int4:
Doesn't do what you think it does. Int4 is a type, tag.dataTypereturns a string value returns a com.inductiveautomation.ignition.common.sqltags.model.types.DataType. The two can never be equivalent.
I would also use 0 for the default value for Integers. Also, instead of calling writeAll twice, combine the lists first and then call writeAll
```
paths = intPaths + stringPaths
values = resetInt + resetStr
system.tag.writeAll(paths,values)
```