public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
* removed Merb.logger calls due to the fact the bootloader did not ran by 
now and it is not initialized.

Signed-off-by: Ezra Zygmuntowicz <ez@engineyard.com>
Martin Grund (author)
Mon Mar 24 12:05:16 -0700 2008
ezmobius (committer)
Mon Mar 24 16:11:09 -0700 2008
commit  d79c1523cf3de716ba00d36f8e2a4694c1643299
tree    3f35d83c89e19a938bee2584ecca710739b0c3be
parent  d7a5f0985eeac9f439324ecd9990d651b336e292
...
163
164
165
166
167
 
 
168
169
170
...
176
177
178
179
 
180
181
182
...
163
164
165
 
166
167
168
169
170
171
...
177
178
179
 
180
181
182
183
0
@@ -163,8 +163,9 @@
0
       # ==== Alternatives
0
       # If group is left out, the user will be used as the group.
0
       def change_privilege(user, group=user)
0
- Merb.logger.warn! "Changing privileges to #{user}:#{group}"
0
         
0
+ puts "Changing privileges to #{user}:#{group}"
0
+
0
         uid, gid = Process.euid, Process.egid
0
         target_uid = Etc.getpwnam(user).uid
0
         target_gid = Etc.getgrnam(group).gid
0
@@ -176,7 +177,7 @@
0
           Process::UID.change_privilege(target_uid)
0
         end
0
       rescue Errno::EPERM => e
0
- Merb.logger.error "Couldn't change user and group to #{user}:#{group}: #{e}"
0
+ puts "Couldn't change user and group to #{user}:#{group}: #{e}"
0
       end
0
     end
0
   end

Comments

    No one has commented yet.