daemon-ogre 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/daemon-ogre.rb +9 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.3
1
+ 1.4.4
data/lib/daemon-ogre.rb CHANGED
@@ -73,13 +73,20 @@ begin
73
73
 
74
74
  def error_logger(error_msg,prefix="",log_file=App.log_path)
75
75
 
76
+ ###convert error msg to more humanfriendly one
77
+ begin
78
+ error_msg= error_msg.to_s.gsub('", "','",'+"\n\"")
79
+ rescue Exception
80
+ error_msg= error_msg.inspect.gsub('", "','",'+"\n\"")
81
+ end
82
+
76
83
  if File.exists?(File.expand_path(log_file))
77
84
  error_log = File.open( File.expand_path(log_file), "a+")
78
- error_log << "\n#{Time.now} | #{prefix}#{":" if prefix != ""} #{error_msg.inspect.gsub(", ",",\n")}"
85
+ error_log << "\n#{Time.now} | #{prefix}#{":" if prefix != ""} #{error_msg}"
79
86
  error_log.close
80
87
  else
81
88
  File.new(File.expand_path(log_file), "w").write(
82
- "#{Time.now} | #{prefix}#{":" if prefix != ""} #{error_msg.inspect.gsub(", ",",\n")}"
89
+ "#{Time.now} | #{prefix}#{":" if prefix != ""} #{error_msg}"
83
90
  )
84
91
  end
85
92
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemon-ogre
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-02 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 4155118797540734077
115
+ hash: 3913919040804686018
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements: