Connexions/cnx-archive — pull request #180 by karenc (2013-12-14 08:55:35+00:00)
Title: Add logging to module published trigger

On alpha, all the problems from Connexions/cnx-upgrade#36 are still there. The uuid changes when you republish an existing module, the major and minor versions are not set.

I tried inserting the module that I found on `/var/log/postgresql/postgresql-9.3-main.log` on alpha into my local db:

```
INSERT INTO modules
(moduleid, portal_type, version, name, created, revised, authors, maintainers, licensors, abstractid, stateid, licenseid, doctype, submitter, submitlog, language, parent)
VALUES
(
'm47641',
'Module',
'1.1',
'HTML Publishing Test 2 12-13-2013',
'2013-12-14T01:57:20Z',
'2013-12-14T01:58:24Z',
ARRAY ['ew2'],
ARRAY ['ew2'],
ARRAY ['ew2'],
1,
NULL,
7,
'',
'ew2',
'Created module',
'en',
null
);
```

It has uuid `18da04bd-b3dc-4568-a45f-3b11b00a01aa`, major version `1` and minor version `NULL`.

I tried publishing the same module again:
```
INSERT INTO modules (moduleid, portal_type, version, name, created, revised, authors, maintainers, licensors, abstractid, stateid, licenseid, doctype, submitter, submitlog, language, parent)
VALUES
(
'm47641',
'Module',
'1.2',
'HTML Publishing Test 2 12-13-2013',
'2013-12-14T01:57:20Z',
'2013-12-14T02:58:24Z',
ARRAY ['ew2'],
ARRAY ['ew2'],
ARRAY ['ew2'],
1,
NULL,
7,
'',
'ew2',
'Created module',
'en',
null
);
```

It has the same uuid `18da04bd-b3dc-4568-a45f-3b11b00a01aa`, major version `2` and minor version `NULL`.

I'm pretty sure the code is working, so what I'm doing in this PR is to just add some logging to see if there's anything unexpected happening.