log 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/log.rb +10 -4
  2. data/lib/log/version.rb +1 -1
  3. metadata +2 -2
data/lib/log.rb CHANGED
@@ -95,10 +95,16 @@ module Log
95
95
  end
96
96
 
97
97
  # Write init message and user parameters
98
- @log4r.info('BBFS Log initialized.') # log first data
99
- Params.get_init_messages().each { |msg|
100
- @log4r.info(msg)
101
- }
98
+ @log4r.info('BBFS Log initialized.') # log first data
99
+
100
+ # print params
101
+ if Params['print_params_to_stdout']
102
+ Params.get_init_messages().each { |msg|
103
+ @log4r.info(msg)
104
+ }
105
+ else
106
+ @log4r.info("Not printing executable parameters since param:'print_params_to_stdout' is false")
107
+ end
102
108
  end
103
109
 
104
110
  # Auxiliary method to add the calling method to the message
data/lib/log/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Log
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-05-01 00:00:00.000000000 Z
12
+ date: 2013-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: params