Browse Source

調整log顯示

ANX 6 years ago
parent
commit
84ec5ec759
2 changed files with 9 additions and 9 deletions
  1. 8 8
      lib/ebaytr.rb
  2. 1 1
      lib/ebaytr/version.rb

+ 8 - 8
lib/ebaytr.rb

@@ -62,10 +62,10 @@ module Ebaytr
       main_str = hash.to_s[0,100]
     end
     puts " "
-    puts "========================================"
-    puts "| Trading #{Time.now.to_s(:db)}"
-    puts "| [#{@@site}][#{request_name}]#{main_str}"
-    puts "----------------------------------------"
+    puts "======================================="
+    puts "│ [#{@@env}] EbayAPI Trading #{Time.now.to_s(:db)}"
+    puts " [#{@@site}][#{request_name}]#{main_str}"
+    puts "---------------------------------------"
     
     res = https.request(req)
     object_hash = Hash.from_xml(res.body)["#{request_name}Response"]
@@ -104,10 +104,10 @@ module Ebaytr
       main_str = hash.to_s[0,100]
     end
     puts " "
-    puts "========================================"
-    puts "| Finding #{Time.now.to_s(:db)}"
-    puts "| [#{@@global_id}][#{request_name}]#{main_str}"
-    puts "----------------------------------------"
+    puts "========================================"
+    puts "│ EbayAPI Finding #{Time.now.to_s(:db)}"
+    puts " [#{@@global_id}][#{request_name}]#{main_str}"
+    puts "---------------------------------------"
 
     res = https.request(req)
     object_hash = Hash.from_xml(res.body)["#{request_name}Response"]

+ 1 - 1
lib/ebaytr/version.rb

@@ -1,3 +1,3 @@
 module Ebaytr
-  VERSION = "1.0.0"
+  VERSION = "1.2.2"
 end