-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from plonegovbr/issue_298
Adiciona logger na raiz do pacote
- Loading branch information
Showing
15 changed files
with
21 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
from brasil.gov.portal.config import PROJECTNAME | ||
|
||
import logging | ||
|
||
|
||
logger = logging.getLogger(PROJECTNAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from brasil.gov.portal.config import PROJECTNAME | ||
from brasil.gov.portal.logger import logger | ||
from plone.app.upgrade.utils import loadMigrationProfile | ||
|
||
import logging | ||
|
||
|
||
def apply_profile(context): | ||
''' Atualiza perfil para versao 2000 ''' | ||
logger = logging.getLogger(PROJECTNAME) | ||
profile = 'profile-brasil.gov.portal.upgrades.v2000:default' | ||
loadMigrationProfile(context, profile) | ||
logger.info('Atualizado para versao 2000') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from brasil.gov.portal.config import PROJECTNAME | ||
from brasil.gov.portal.logger import logger | ||
from plone.app.upgrade.utils import loadMigrationProfile | ||
|
||
import logging | ||
|
||
|
||
def apply_profile(context): | ||
''' Atualiza perfil para versao 3000 ''' | ||
logger = logging.getLogger(PROJECTNAME) | ||
profile = 'profile-brasil.gov.portal.upgrades.v3000:default' | ||
loadMigrationProfile(context, profile) | ||
logger.info('Atualizado para versao 3000') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from brasil.gov.portal.config import PROJECTNAME | ||
from brasil.gov.portal.logger import logger | ||
from plone.app.upgrade.utils import loadMigrationProfile | ||
|
||
import logging | ||
|
||
|
||
def apply_profile(context): | ||
''' Atualiza perfil para versao 4000 ''' | ||
logger = logging.getLogger(PROJECTNAME) | ||
profile = 'profile-brasil.gov.portal.upgrades.v4000:default' | ||
loadMigrationProfile(context, profile) | ||
logger.info('Atualizado para versao 4000') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters