Feature-Request: Improve log output of migrator

The log output of the migrator uses a bunch of quote chars, which corrupt the output on pasting in this forum. Feature-Request to use double or single quotes to eliminate bad formatting here and of course to make the logfile parseable with other tools.

E.g. this chars are used and also not consistently:


`
"

here the original log output (only copy and pasted)

thread#1: loading 20 Ticket starting at 56480...
thread#1: POST: https://otrs.example.com/otrs/public.pl?Action=ZammadMigrator
thread#1: PARAMS: {:Subaction=>"Export", :Object=>"Ticket", :Limit=>20, :Offset=>56480, :Diff=>0, :Action=>"ZammadMigrator", :Key=>"1234567890ßqwertzuiop"}
thread#1: ERROR: #<Net::ReadTimeout: Net::ReadTimeout>
thread#1: POST: https://otrs.example.com/otrs/public.pl?Action=ZammadMigrator
thread#1: PARAMS: {:Subaction=>"Export", :Object=>"Ticket", :Limit=>20, :Offset=>56480, :Diff=>0, :Action=>"ZammadMigrator", :Key=>"1234567890ßqwertzuiop"}
thread#1: ERROR: #<Net::ReadTimeout: Net::ReadTimeout>
thread#1: POST: https://otrs.example.com/otrs/public.pl?Action=ZammadMigrator
thread#1: PARAMS: {:Subaction=>"Export", :Object=>"Ticket", :Limit=>20, :Offset=>56480, :Diff=>0, :Action=>"ZammadMigrator", :Key=>"1234567890ßqwertzuiop"}
thread#1: ERROR: #<Net::ReadTimeout: Net::ReadTimeout>
        from /opt/zammad/lib/import/otrs/requester.rb:90:in `request_json'
        from /opt/zammad/lib/import/otrs/requester.rb:77:in `request_result'
        from /opt/zammad/lib/import/otrs/requester.rb:32:in `load'
        from /opt/zammad/lib/import/otrs.rb:141:in `import_action'
        from /opt/zammad/lib/import/otrs.rb:135:in `imported?'
        from /opt/zammad/lib/import/otrs.rb:99:in `block (3 levels) in threaded_import'
        from /opt/zammad/lib/import/otrs.rb:93:in `loop'
        from /opt/zammad/lib/import/otrs.rb:93:in `block (2 levels) in threaded_import'
        from /opt/zammad/vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

and here the same but done a manual and consistent usage with double quotes:

thread#1: loading 20 Ticket starting at 56480...
thread#1: POST: https://otrs.example.com/otrs/public.pl?Action=ZammadMigrator
thread#1: PARAMS: {:Subaction=>"Export", :Object=>"Ticket", :Limit=>20, :Offset=>56480, :Diff=>0, :Action=>"ZammadMigrator", :Key=>"1234567890ßqwertzuiop"}
thread#1: ERROR: #<Net::ReadTimeout: Net::ReadTimeout>
thread#1: POST: https://otrs.example.com/otrs/public.pl?Action=ZammadMigrator
thread#1: PARAMS: {:Subaction=>"Export", :Object=>"Ticket", :Limit=>20, :Offset=>56480, :Diff=>0, :Action=>"ZammadMigrator", :Key=>"1234567890ßqwertzuiop"}
thread#1: ERROR: #<Net::ReadTimeout: Net::ReadTimeout>
thread#1: POST: https://otrs.example.com/otrs/public.pl?Action=ZammadMigrator
thread#1: PARAMS: {:Subaction=>"Export", :Object=>"Ticket", :Limit=>20, :Offset=>56480, :Diff=>0, :Action=>"ZammadMigrator", :Key=>"1234567890ßqwertzuiop"}
thread#1: ERROR: #<Net::ReadTimeout: Net::ReadTimeout>
        from /opt/zammad/lib/import/otrs/requester.rb:90:in "request_json"
        from /opt/zammad/lib/import/otrs/requester.rb:77:in "request_result"
        from /opt/zammad/lib/import/otrs/requester.rb:32:in "load"
        from /opt/zammad/lib/import/otrs.rb:141:in "import_action"
        from /opt/zammad/lib/import/otrs.rb:135:in "imported?"
        from /opt/zammad/lib/import/otrs.rb:99:in "block (3 levels) in threaded_import"
        from /opt/zammad/lib/import/otrs.rb:93:in "loop"
        from /opt/zammad/lib/import/otrs.rb:93:in "block (2 levels) in threaded_import"
        from /opt/zammad/vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in "block in create_with_logging_context"

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.