Fixed a bug where json response where returned from Log and not the created id