diff options
author | Tim Smith <tsmith@chef.io> | 2019-12-02 15:57:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 15:57:29 -0800 |
commit | efc6f1b54cc06a22130d7e66def4dda4ee2007fa (patch) | |
tree | 2deea0c99fe37409dc663a29a701e94e8c851935 | |
parent | 9009b12f14272522c08b2d19c94ae3e418867f56 (diff) | |
parent | 5a589a8843d638331daaa4d11b877bce0b78fee0 (diff) | |
download | chef-efc6f1b54cc06a22130d7e66def4dda4ee2007fa.tar.gz |
Merge pull request #9117 from cinc-project/win_log_correction
restoring correct value to windows event source
-rw-r--r-- | ext/win32-eventlog/Rakefile | 2 | ||||
-rw-r--r-- | lib/chef/dist.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ext/win32-eventlog/Rakefile b/ext/win32-eventlog/Rakefile index e9f4c05811..2cf1a40896 100644 --- a/ext/win32-eventlog/Rakefile +++ b/ext/win32-eventlog/Rakefile @@ -51,7 +51,7 @@ task register: EVT_SHARED_OBJECT do begin Win32::EventLog.add_event_source( source: "Application", - key_name: Chef::Dist::PRODUCT, + key_name: Chef::Dist::SHORT, event_message_file: dll_file, category_message_file: dll_file ) diff --git a/lib/chef/dist.rb b/lib/chef/dist.rb index baf43c9127..fe17388940 100644 --- a/lib/chef/dist.rb +++ b/lib/chef/dist.rb @@ -4,6 +4,10 @@ class Chef # When referencing a product directly, like Chef (Now Chef Infra) PRODUCT = "Chef Infra Client".freeze + # A short designation for the product, used in Windows event logs + # and some nomenclature. + SHORT = "chef".freeze + # The name of the server product SERVER_PRODUCT = "Chef Infra Server".freeze |