diff --git a/browser/components/enterprisepolicies/Policies.jsm b/browser/components/enterprisepolicies/Policies.jsm
index fa55194c970ff9d3282e11d5f7a78133ad746340..899ed67b1b5c6bfaa70a17d150cef405a9efd3ca 100644
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -2,8 +2,6 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-/* globals log */
-
 "use strict";
 
 const { XPCOMUtils } = ChromeUtils.importESModule(
@@ -532,7 +530,7 @@ var Policies = {
       }
 
       if (param.ExpireAtSessionEnd != undefined) {
-        log.error(
+        lazy.log.error(
           "'ExpireAtSessionEnd' has been deprecated and it has no effect anymore."
         );
       }