72 Commits

Author SHA1 Message Date
Claus-Peter Hübner
ff93c41c19 Merge remote-tracking branch 'origin/master' into 2220-feature-reconfigure-log4js 2022-09-28 21:41:51 +02:00
clauspeterhuebner
55a8174822
Merge branch 'master' into 2215-feature-config-testmodus-flag-for-sending-emails-to-test-or-team-account-instead-of-user-account 2022-09-23 19:29:34 +02:00
Claus-Peter Hübner
516fc5c5e7 Merge remote-tracking branch 'origin/master' into
2220-feature-reconfigure-log4js
2022-09-23 19:28:28 +02:00
Claus-Peter Hübner
de234cc7df rework PR remarks 2022-09-22 23:29:51 +02:00
Claus-Peter Hübner
95b4052ed5 correct and more detailed logoutput 2022-09-20 18:26:56 +02:00
Claus-Peter Hübner
6c88713f34 start inserting logger.addContext for userid 2022-09-20 16:20:52 +02:00
clauspeterhuebner
fc706bc030
Update backend/src/server/createServer.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2022-09-20 16:08:56 +02:00
clauspeterhuebner
49e0606d16
Update backend/src/server/createServer.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2022-09-20 16:08:44 +02:00
Claus-Peter Hübner
4f97999195 add prevention to run production in test-mode 2022-09-16 16:52:54 +02:00
Moriz Wahl
80bbf24116 add client request time to context 2022-09-15 12:30:29 +02:00
elweyn
87055e732c Define klicktipp logger. 2022-08-04 11:47:10 +02:00
Moriz Wahl
175bc514be feat: Do not log IntrospectionQuery from Query Browser 2022-07-15 13:36:31 +02:00
Moriz Wahl
22be58f782 fix: .env log level for apollo and backend category 2022-06-02 14:23:57 +02:00
Moriz Wahl
28d876e71c log errors as error 2022-05-30 07:51:13 +02:00
Moriz Wahl
8853e0d5f9 remove user context from apollo logger 2022-05-19 20:33:07 +02:00
Moriz Wahl
dd4c8ec5b4 refactor: Use Logger Categories 2022-05-19 17:08:27 +02:00
Moriz Wahl
5cac5d9cfb loggers are created only once, unify logger for unit tests 2022-05-16 16:02:12 +02:00
Moriz Wahl
cb012882b1 rename logger to apollo 2022-05-10 19:32:48 +02:00
Moriz Wahl
6ce850dc1e read log level from config to override default 2022-05-10 19:31:45 +02:00
Moriz Wahl
700f8ada07 allow test environment to be loaded with mocked logger 2022-05-10 16:51:37 +02:00
Moriz Wahl
80b7305860 Silence logger for unit tests in user resolver. Make tests available for logger in user resolver 2022-05-10 16:33:40 +02:00
Claus-Peter Hübner
1be08cc7e1 additional logs 2022-05-06 03:08:28 +02:00
Claus-Peter Hübner
64167692e8 lint files with changed eof config 2022-05-05 16:20:42 +02:00
Claus-Peter Hübner
4afffea797 additional logg-statements 2022-05-05 01:01:06 +02:00
Moriz Wahl
befa965a44 configure logger only once. Log Context User ID if present on response 2022-05-04 13:58:45 +02:00
Claus-Peter Hübner
0449dc59e8 try to log UserResolver, is not working, no output 2022-05-04 02:23:33 +02:00
Moriz Wahl
e1985aca71 output a bit prettier 2022-05-03 11:00:53 +02:00
Moriz Wahl
b10f9245b6 linting 2022-05-03 10:41:04 +02:00
Moriz Wahl
a921625f4a Merge branch 'improve-apollo-logging' of github.com:gradido/gradido into improve-apollo-logging 2022-05-03 10:37:02 +02:00
Moriz Wahl
114177b0d8 further tests 2022-05-03 10:13:51 +02:00
Claus-Peter Hübner
5824657d75 test loggers 2022-04-30 00:26:56 +02:00
Claus-Peter Hübner
ff35897e01 log4j in createServer and configuration file 2022-04-30 00:24:05 +02:00
Moriz Wahl
58fb934a28 use log4js 2022-04-29 13:39:39 +02:00
Moriz Wahl
78ff58f9b6 use winston as logger, start creating own apollo logger 2022-04-29 11:50:39 +02:00
Moriz Wahl
f752d8d045 type ExpressContext 2022-04-11 17:25:59 +02:00
Moriz Wahl
71d1701102 undo apollo log plugin hack 2022-04-11 16:31:21 +02:00
Moriz Wahl
00bba07b11 define hack to pass already queried data to balance resolver 2022-04-11 16:22:09 +02:00
Moriz Wahl
6cc8410720 helper function to get user from context 2022-04-11 16:15:57 +02:00
Moriz Wahl
e183a9bde0 remove unused modules 2022-04-11 15:53:00 +02:00
Moriz Wahl
7ec35bbfb2 define context interface 2022-04-11 15:50:02 +02:00
5fe1e05ca4
use tsconfig-paths package to resolve paths
link build and src paths for the external database package
2022-03-18 01:35:01 +01:00
Moriz Wahl
7e4c3ec3ce more resolved paths 2022-03-07 21:56:03 +01:00
Moriz Wahl
631346b63c remove deleted entities 2022-02-16 13:19:27 +01:00
Moriz Wahl
a201cad0db use lodash clonedeep to copy objects 2022-02-14 12:57:24 +01:00
760b7e2d01
renamed data2 to dataCopy 2022-02-14 10:24:06 +01:00
820cdfb16f
do not log password and token to the console 2022-02-14 09:51:06 +01:00
5bc23a4857
remove typeorm from backend project and reference the one installed in database. This way the default connection of the enteties can be used - this was not possible before since the connection waa created in the backend typeorm, but the entities are defined in the database installation.
We now remove the typeorm from backend and rely solely on the database typeorm. We now can use both activeRecord and dataMapper pattern.
2022-02-01 04:14:54 +01:00
2fc4c9c341
cleanup index - check db version externally
define required db version in cofig as constant
some type updates
2022-02-01 02:51:43 +01:00
f3078b3cbd
use url encode bodyparser 2022-01-27 21:29:18 +01:00
9f72ea23bc
update required db version 2022-01-25 00:49:54 +01:00