emqx/apps
Thales Macedo Garitezi fdcd73e20c fix(file_logger): change file logger type depending on rotation size
Fixes https://emqx.atlassian.net/browse/EMQX-11036

From `logger_disk_log_h:open_disk_log`:

```erlang
open_disk_log(Name,File,Type,MaxNoBytes,MaxNoFiles) ->
    case filelib:ensure_dir(File) of
        ok ->
            Size =
                if Type==halt -> MaxNoBytes;
                   Type==wrap -> {MaxNoBytes,MaxNoFiles} %% <-------
                end,
            Opts = [{name,   Name},
                    {file,   File},
                    {size,   Size},
                    {type,   Type},
                    {linkto, self()},
                    {repair, false},
                    {format, external},
                    {notify, true},
                    {quiet,  true},
                    {mode,   read_write}],
            case disk_log:open(Opts) of
```

Affects all file loggers (audit included):

```
% emqx_config_logger:update_log_handler/1 -> ok
iex(emqx@127.0.0.1)14> Config override: log.file.emqx_audit is updated, but failed to add handler: {handler_not_added,
                                                                             {badarg,
                                                                              [{size,
                                                                                {infinity,
                                                                                 10}},
                                                                               {type,
                                                                                wrap},
                                                                               {linkto,
                                                                                <0.1952.0>},
                                                                               {repair,
                                                                                false},
                                                                               {format,
                                                                                external},
                                                                               {notify,
                                                                                true},
                                                                               {quiet,
                                                                                true},
                                                                               {mode,
                                                                                read_write}]}}
```
2023-09-26 09:04:44 -03:00
..
emqx fix(file_logger): change file logger type depending on rotation size 2023-09-26 09:04:44 -03:00
emqx_authn chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_authz chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_auto_subscribe feat: implement configuration and user data export/import CLI 2023-06-09 14:11:47 +03:00
emqx_bridge chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_azure_event_hub Merge remote-tracking branch 'origin/release-52' into 0906-sync-release-52-to-master 2023-09-06 09:08:22 +02:00
emqx_bridge_cassandra test(emqx_bridge_cassandra): add connector test case for Cassandra configured without authentication 2023-09-01 19:56:07 +03:00
emqx_bridge_clickhouse chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_dynamo chore: merge 'upstream/master' into v5.1.2 2023-07-21 13:25:46 +02:00
emqx_bridge_gcp_pubsub test: merge broker and router boot modules 2023-09-06 21:36:16 +02:00
emqx_bridge_greptimedb chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_hstreamdb chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_http chore: apply suggestions from code review 2023-09-20 22:15:39 +08:00
emqx_bridge_influxdb chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_iotdb feat: add Azure Event Hub Producer bridge 2023-07-27 09:22:39 -03:00
emqx_bridge_kafka feat(sso): add role into the result of login endpoints 2023-09-22 13:48:07 +08:00
emqx_bridge_kinesis chore: bump app vsns 2023-09-06 11:12:56 +02:00
emqx_bridge_matrix fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_mongodb feat(mongodb): add configurable option to override legacy protocol usage 2023-08-14 13:19:50 -03:00
emqx_bridge_mqtt feat(republish): allow templating mqtt properties 2023-09-06 09:54:02 -03:00
emqx_bridge_mysql fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_opents chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_oracle fix(http_bridge): don't attempt to convert headers to atoms 2023-08-07 13:08:34 -03:00
emqx_bridge_pgsql test: attempt to stabilize flaky tests 2023-08-07 13:08:34 -03:00
emqx_bridge_pulsar test: merge broker and router boot modules 2023-09-06 21:36:16 +02:00
emqx_bridge_rabbitmq chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_redis fix(redis): set bridge as unhealthy on authentication error 2023-08-18 14:51:03 -03:00
emqx_bridge_rocketmq fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_sqlserver chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_tdengine chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_timescale fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_conf fix(file_logger): change file logger type depending on rotation size 2023-09-26 09:04:44 -03:00
emqx_connector chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_ctl fix(audit): make emqx eval command auditable 2023-09-22 12:05:45 +02:00
emqx_dashboard fix(sso): Improved SSO user deletion command 2023-09-26 14:15:41 +08:00
emqx_dashboard_rbac chore: fix Dashboard RBAC license and rebar.config 2023-09-22 21:19:45 +08:00
emqx_dashboard_sso Merge pull request #11686 from lafirest/fix/sso_user_backend 2023-09-26 16:04:51 +08:00
emqx_durable_storage chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_enterprise fix(audit): only support audit log on enterprise edition 2023-09-25 15:59:35 -03:00
emqx_eviction_agent chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_exhook chore: shutdown reason will never be a UTF8 atom 2023-09-01 14:17:33 +08:00
emqx_ft chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_gateway chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_gateway_coap chore: bump application versions 2023-09-20 22:52:14 +04:00
emqx_gateway_exproto chore: bump application versions 2023-09-20 22:52:14 +04:00
emqx_gateway_lwm2m feat(authz): use extensible map format for actions in authz rules 2023-07-07 19:40:34 +03:00
emqx_gateway_mqttsn chore(chan): rename Name → TimerName for better readability 2023-09-20 22:55:25 +04:00
emqx_gateway_stomp feat(authz): use extensible map format for actions in authz rules 2023-07-07 19:40:34 +03:00
emqx_gcp_device chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_ldap fix: redact sensitive data in SSO and LDAP 2023-09-26 11:06:47 +08:00
emqx_machine Merge pull request #11599 from zhongwencool/audit-log 2023-09-21 18:39:23 +08:00
emqx_management Merge pull request #11659 from zhongwencool/fix-listener-ssl-create-500 2023-09-26 11:38:07 +02:00
emqx_modules chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_mongodb feat(mongodb): add configurable option to override legacy protocol usage 2023-08-14 13:19:50 -03:00
emqx_mysql chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_node_rebalance feat: cluster purge (r5.2) 2023-09-04 09:15:28 -03:00
emqx_opentelemetry chore: bump app vsns 2023-09-06 11:12:56 +02:00
emqx_oracle chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_plugins fix(plugins): update plugin order on whole cluster 2023-08-30 16:39:52 -03:00
emqx_prometheus Merge pull request #11497 from zhongwencool/prometheus-metrics 2023-08-24 12:06:32 +08:00
emqx_psk fix: psk_authentication is updated failed 2023-07-07 20:02:06 +08:00
emqx_redis fix(redis): use eredis_secret to avoid password leaking 2023-08-18 14:51:03 -03:00
emqx_resource chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_retainer feat(quic): bump to quicer 0.0.200 and emqtt 1.9.0 2023-09-20 16:43:15 +02:00
emqx_rule_engine chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_s3 feat(kinesis): implement Amazon Kinesis Producer bridge 2023-07-17 11:51:42 -03:00
emqx_schema_registry test: merge broker and router boot modules 2023-09-06 21:36:16 +02:00
emqx_slow_subs chore: bump app vsns 2023-06-21 16:36:51 +02:00
emqx_telemetry feat: added support for auditing API and CLI activity in logs 2023-09-21 16:35:46 +08:00
emqx_utils chore: bump apps versions 2023-09-21 10:58:42 +02:00