Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why generating a xml, fills my logs with - - "new" message ? #58

Closed
grfx1985 opened this issue Sep 6, 2017 · 1 comment
Closed

why generating a xml, fills my logs with - - "new" message ? #58

grfx1985 opened this issue Sep 6, 2017 · 1 comment

Comments

@grfx1985
Copy link

grfx1985 commented Sep 6, 2017

part of my service dose this :

products = Product.search(JSON.parse(@campaign.q))
xml = Builder::XmlMarkup.new
xml << @campaign.wrapper_begin
products.each do |product|
     @campaign.root_elements.each do |element|
       xml.tag!(element.tag, element.xml_attributes(product)) do
         element.decorators.each do |decorator|
           element.cdata ? xml.cdata!(decorator.print_code(product).to_s) : xml << decorator.print_code(product).to_s
         end

         element.childs.each do |child|
           xml.tag!(child.tag, child.xml_attributes(product)) do
             child.decorators.each do |decorator|
               child.cdata ? xml.cdata!(decorator.print_code(product).to_s) : xml << decorator.print_code(product).to_s
             end
           end
         end
       end
     end
   end
   xml << @campaign.wrapper_end

image

how is this keep loging ? is there a way to disable this - my logs are humongous because of this :)

image-2017-09-04-12-01-42-044

@grfx1985 grfx1985 changed the title why generating a xml logs get filled with - - "new" message ? why generating a xml, fills my logs with - - "new" message ? Sep 6, 2017
@grfx1985 grfx1985 closed this as completed Sep 7, 2017
@grfx1985
Copy link
Author

grfx1985 commented Sep 7, 2017

I have found the reason for this odd behaviour. Sorry to bother You :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant