Error tracking

is there a way to narrow down exactly which image has caused an error in the logs?

I’m getting these errors every now and again, but finding it impossible to find the source

E0609 15:58:38.929278 3112 ServerContext.cpp:372] Error in OnStoredInstance callback (Lua): [string “line”]:7: bad argument #1 to ‘lower’ (string expected, got nil)

E0611 08:04:02.762610 3840 CommandDispatcher.cpp:852] DIMSE failure (aborting association): DIMSE No data available (timeout in non-blocking mode)

To track the problem, you could use the “PrintRecursive()” and the “print()” functions inside the Lua script.

OK. are there any examples of how these functions could be used for this? - sorry i’m new to lua scripting.

thanks

You can find several examples in the following folder:
https://code.google.com/p/orthanc/source/browse/#hg%2FResources%2FSamples%2FLua

It contains several examples of using “print()”.

If you want to print the content of a data structure, say “tags”, you can use “PrintRecursive(tags)”.

Sébastien-